-
Notifications
You must be signed in to change notification settings - Fork 33
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
Rerun All Tests does not do the same thing every time #142
Comments
Scenario 1 : I confirm this is expected behavior. Scenario 2: This is also expected behavior. Scenario 3: I agree with you that this is another case of issue #138. My assumption is that the rerun does not start from the project's context. To be investigated (bug). Scenario 4 and 5: Different flavors of "Test not in memory". When we rerun tests which were run using VI Server, we must try to find the VI's path on disk based on the Call Chain. However, asynchronous launch of VIs generate a call chain through ACBR Proxy Caller. There is a quick check to see if we could get lucky and find the path from an alternate mean (project base path, app folder, etc.) but I would call this feature "unfinished" at best. |
I have found another incongruity... Let's call it Scenario 6:
We expect that:
What is weird is, in the 3rd case, Rerun will only assert B and completely skip A. I suspect the "root test" does not resolve, and the next item in the call chain is used as root. |
Ah okay, so this was a design decision after all.
This is also a dangerous path, because if we get unlucky it executes random VIs from disk simply because the name matches. Regarding scenario 6, when tests are registered, they are stored as variant attributes by their Test ID, which means that order of execution is lost. So if |
Caraya 1.2.1, LV2017SP1f3 (32-bit)
I've been playing with the latest patch and found that the Rerun All Tests feature is behaving strangely. Here are a few scenarios I have tested:
Scenario 1 - simple test case
Notice that the same test executes again in the same window. This is the expected behavior.
Save the VI for use in the next scenarios.
Scenario 2 - simple test suite
(using the VI from scenario 1)
Define Test Suite (Default)
beforeDefine Test
true
constant to theinteractive?
terminalDestroy Test Suite
after the assertionNotice that every time a new dialog appears (only when
interactive?
is set to true). I'm not sure if this is the intended behavior, because I'd expect it to rerun all tests in the same dialog.Scenario 3 - using the project test runner
(using the VI from scenario 1)
Notice that here a second dialog appears the first time we rerun the tests, but if we rerun again it reuses the second dialog. I believe the behavior of the second dialog is the expected behavior and this is somehow related to the application context issue discussed in #138.
Scenario 4 - using the disk test runner
(using the VI from scenario 1)
Notice that an error message appears. (if the error message does not appear, make sure that all VIs are closed before running the test)
Scenario 5 - test case inside project library
(using the VI from scenario 1)
Notice that nothing happens.
Now here comes the strange part.
Notice that this time the VI executes again and another dialog appears.
The text was updated successfully, but these errors were encountered: