Open Structed opened 2 years ago
I have a test, which writes a file to a path similar to res://tests/temp/config.cfg. I also run
res://tests/temp/config.cfg
func after_each(): directory.remove(path)
to remove the file after every single test execution.
This works fine on my local machine. However, it does not with godot-tester.
godot-tester
I assume this is due to file system permissions on the container?
Test fails:
[Failed]: at line -1
Comment out this test and run on GitHub Action
Repro Test: https://github.com/Structed/godot-playfab/blob/db0ca9f1e1ee170080394fa8ed21bd7a22778a34/addons/godot-playfab/test/unit/PlayFabClientConfig/test_PlayFabClientConfigLoader.gd#L13
Will add as a test goal. We should be able to enable file writing from tests as this action has no secrets that can be exploited.
That said, solution may requires tests to be run with a specific file path
Description
I have a test, which writes a file to a path similar to
res://tests/temp/config.cfg
. I also runto remove the file after every single test execution.
This works fine on my local machine. However, it does not with
godot-tester
.I assume this is due to file system permissions on the container?
Expected Behaviour
Actual Behaviour
Test fails:
Repro
Comment out this test and run on GitHub Action
Repro Test: https://github.com/Structed/godot-playfab/blob/db0ca9f1e1ee170080394fa8ed21bd7a22778a34/addons/godot-playfab/test/unit/PlayFabClientConfig/test_PlayFabClientConfigLoader.gd#L13