Multi_Thread_Toplevels unit tests fails if run standalone or in different order
See original GitHub issueI just discovered that Multi_Thread_Toplevels
in UnitTests/ViewTests.cs
fails if it is run as a standalone test or if the order of what tests run before it change.
I discovered this when I was re-factoring how the unit tests are organized.
This test has some dependency from prior running tests that allow it to succeed. Or there is actually a bug in MainLoop
that is HIDDEN because of another unit test.
If all of the tests in the ViewTests.cs
are run, it does not fail. So the dependency is likely in there.
@BDisp I think I will need you help debugging this!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:17
Top Results From Across the Web
Multi_Thread_Toplevels unit tests fails if run standalone or ...
If all of the tests in the ViewTests.cs are run, it does not fail. So the dependency is likely in there. It fail...
Read more >Unit Test fails on Run All but not on Run Selected Tests ...
I have been caught out in the past with running multiple unit tests in that the order in which the tests run may...
Read more >Is it bad practice to enforce an execution order for unit tests?
An ordered test run, with the option of an early quit out of the test run if things goes wrong is perfectly acceptable...
Read more >Run all tests in TestSuite array in parallel - MATLAB
The method returns the results as an array of TestResult objects. When tests run in parallel (requires Parallel Computing Toolbox™), test suite portions...
Read more >Unit tests
Unit tests ¶. Django comes with a test suite of its own, in the tests directory of the code base. It's our policy...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed
We should not feel satisfied with this test until we can explain it!
-cek Via mobile; expect brevity, typos, and dangerous driving.
From: BDisp @.> Sent: Wednesday, April 21, 2021 11:11:34 AM To: migueldeicaza/gui.cs @.> Cc: Charlie Kindel @.) @.>; Author @.***> Subject: Re: [migueldeicaza/gui.cs] Multi_Thread_Toplevels unit tests fails if run standalone or in different order (#1238)
Something in your configuration changes the MainLoop timer. Before when count was less than 15 and count1 greater than 13, or equal to 14 it pass. Now when count is equal to 14 the count1 is equal to 13. I haven’t an explanation for this, sorry.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/migueldeicaza/gui.cs/issues/1238#issuecomment-824258269, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAEO6CTCBIRMHNDUTR5TKY3TJ4INNANCNFSM43KTFHDA.