-
Notifications
You must be signed in to change notification settings - Fork 736
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
Test execution hangs when using [SetUpFixture] with NUnit 3.8.x #2467
Comments
Hi @jairbubbles can you also provide the InternalTrace-files when you add verbose logging (i.e. |
It seems highly related to my namespaces not being clean. In
I I move tests from |
(I'll try to make a simple repro case) |
Here we go: (You need VS2017). |
Great, nice example @jairbubbles. To save other's having to download - here's the repro. (I haven't tried it myself.) There were some changes in this area for 3.8 which introduced a few problems we've been rooting out. My guess is the particular specific things about your case we haven't seen before are a combination of:
|
I can confirm you that adding |
Assigning this to myself for now so we don't duplicate one another. I'm adding this as a case to the suite of parallelization tests I'm working on. |
I'm having the same issue with my integration tests and since they depend on the database I'm hesitant to run the tests in parallell. For others in my situation: my bandaid solution until proper fix is to rename the tests/namespaces so that the tests that isn't part of the SetupFixtures is run before anything else. Smelly I know, but a temporary solution that seems to be working. |
I think I might be suffering the same issue. My code base is now open sourced at https://github.com/Sauceforge/Saucery3 |
I added tests to demonstrate that this is not an NUnit framework problem. It may be that there is an adapter issue, of course, but I wanted to clear the issue here first. |
rprouse/NUnit.Parallelism.Integration.Tests@490c98a
It hangs with console runner (3.7) and also with R# (2017.2).
Here are the log files when using
--labels:before
:nunit_3_8_1.txt
nunit_3_7.txt
When running in R# we see that tests from other namespace never start:
It seems related to
public class AssemblySetup
which has the attribute[SetUpFixture]
.The text was updated successfully, but these errors were encountered: