-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUN_IN_SEQUENCE doesn't work for multiple TestSuites #189
Comments
Your output window looks weird, you get double outputs for some reason.
Please also check this FAQ: https://tcunit.org/frequently-asked-questions/?Display_FAQ=970
Note that version 1.2.1.0 of TcUnit doesn't exist. The latest release is 1.2.0.0. |
I tested it with the latest release 1.2.0.0 and got the following: Which means that something in a commit after the release has broken this. @doerk77 Could you look into it and create a PR? |
Make sure to read the contributing. Thanks. |
Here are all the commits since the release of 1.2.0.0. |
Also, if you could think of any good test to add to the TcUnit-Verifier to cover this case, that would be awesome! |
@doerk77 seems reasonable. Good work! TcUnit always needs more contributors! Would be really good if the TcUnit-Runner would detect this failure, so we don't end up here again. |
Question: Is there a reason why registering tests is only possible while the testsuite is running? In general I'd allow it the whole time until the testsuite actually starts running. At this point in time the list should not change any more. Not that easy to write a test how it might be possible to detect this kind of issue though... Let me think about it. |
Seems to be an ADSLOGSTR / TwinCAT feature if you have 2 projects in a single solution. |
FYI: Just checked with Beckhoff support. Inside the IDE there's an event listener instantiated per project on the PLC. Therefore the event from ADSLOGSTR is being written to the Error List window twice. |
Solved. Thanks for finding the problem @doerk77. |
Describe the bug
RUN_IN_SEQUENCE executes the tests on the first TestSuite, but the tests for the 2nd TestSuite are not being executed.
When RUN_IN_SEQUENCE calls AreAllTestsFinished(), it returns true (because no test has been registered yet) and therefore the tests never get executed.
But the tests can only be registered in TEST_ORDERED during execution of the test suite.
Note: It all works fine if the test suites are being executed in parallel.
Screenshots
Using TcUnit.RUN() and TEST()
Using TcUnit.RUN_IN_SEQUENCE() and TEST_ORDERED()
Software versions
v1.2.1.0
The text was updated successfully, but these errors were encountered: