DotNet Core 3.1 + NUnit 3.13.1 + Travis-CI = flailing tests?

13 views
Skip to first unread message

Itai Bar-Haim

unread,
Feb 5, 2021, 10:22:41 AMFeb 5
to NUnit-Discuss
Hello everyone.
I'm Itai from Applitools, and we currently use Travis-CI to build our .NET SDK.
We have two types of regression tests - generated and hand-written, both use NUnit.
While the generated test pass constantly, the hand-written test hangs at some point.
I tried to investigate where it happens, but it seems random, sometimes it doesn't even reach the actual test code. I added a print when the test is starting on the "Setup" method of the base class that's common for all the tests (the generated and the hand-written) with the test name and thread id, and on some hangs I see only this print. and no other prints (even though I have logs in almost every method,  and in the "TearDown" common method).
At some point I see no more logs being written, and after 10 minutes Travis-CI kills the build claiming no logs were added in the last 10 minutes.
When I try to run the hanged tests locally they pass. I tried removing the "LevelOfParallelism" assembly attribute but it still happens.
I will continue to investigate it on my end, but since I saw several fixes for other CI systems in recent NUnit releases I thought I should ask here too.

Thanks,
Itai.
Reply all
Reply to author
Forward
0 new messages