Run all unit tests after running a single test #562
Answered
by
MikeSchulze
joshuafolkken
asked this question in
Q&A
-
I'm using the Mac Option+F5 shortcut to test a specific function. After doing this, when I want to run all tests and press only F5, it still runs the test for just the previous function. I've found that to make F5 run all tests, I need to first run Option+F5 on a blank line. Is this the expected behavior? I like GdUnit4. Thank you! Environment Details
|
Beta Was this translation helpful? Give feedback.
Answered by
MikeSchulze
Aug 31, 2024
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MikeSchulze
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The test can be run in different scenarios.
At first, you have the overall shortcuts:
F5 only should not run any test, exceptional you have not built a custom main scene to run tests.
Or using the context menus in the script editor or inspector.
The test execution is depended on the actual selected line in the script editor.
e.g. you have selected the test function, it will run only this single test, otherwise all tests in the test suite will be executed.
In the inspector the same behavior it will execute the selected test, test suite or the content of a selected folder.
I hope this answers your questions.