question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multi_Thread_Toplevels unit tests fails if run standalone or in different order

See original GitHub issue

I 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.

image

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:17

github_iconTop GitHub Comments

1reaction
tigcommented, Apr 26, 2021

Fixed

1reaction
tigcommented, Apr 21, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found