Skip to content
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

NUnit 3 console runs test for nunit.framework.dll v2 in parallel mode #33

Closed
NikolayPianikov opened this issue Aug 17, 2016 · 7 comments

Comments

@NikolayPianikov
Copy link
Member

NikolayPianikov commented Aug 17, 2016

Is it expected behavior? If it is true the TC extensions works incorrectly for this case.
As I know nunit.framework.dll v2 have no attributes for parallel mode. And this issue is critical for the TC extension. Related issue is nunit/teamcity-event-listener#14

@NikolayPianikov NikolayPianikov changed the title NUnit 3 runs test from nunit.framework.dll v2 in parallel mode NUnit 3 console runs test for nunit.framework.dll v2 in parallel mode Aug 17, 2016
@rprouse
Copy link
Member

rprouse commented Aug 17, 2016

I believe that NUnit 3 will run multiple NUnit 2 test assemblies in parallel, but the tests within the v2 tests will not be run in parallel. Is the trouble with multiple assemblies?

@NikolayPianikov
Copy link
Member Author

Yes, the the trouble with multiple assemblies.

@rprouse
Copy link
Member

rprouse commented Aug 17, 2016

Why is this a problem for the TC extension? v3 tests run the same way. I assume you handle that?

@NikolayPianikov
Copy link
Member Author

NikolayPianikov commented Aug 17, 2016

Extension receives 2 message one after another:

1:

<start-suite id="1-1005" name="C:\Projects\GitHub\nunit-teamcity-event-listener\bin\Debug\1167775801\mocks\MAP.Common.Test.dll" fullname="C:\Projects\GitHub\nunit-teamcity-event-listener\bin\Debug\1167775801\mocks\MAP.Common.Test.dll" />

2:

<start-suite id="1-1431" name="C:\Projects\GitHub\nunit-teamcity-event-listener\bin\Debug\1167775801\mocks\MAP.Web.Test.dll" fullname="C:\Projects\GitHub\nunit-teamcity-event-listener\bin\Debug\1167775801\mocks\MAP.Web.Test.dll" />

After that

3:
<start-suite id="1-1006" name="MAP" fullname="MAP" />

Question: What assembly corresponds <start-suite id="1-1006" name="MAP" fullname="MAP" /> ?
We have a bunch of unstructured messages from different assemblies

@NikolayPianikov
Copy link
Member Author

NikolayPianikov commented Aug 17, 2016

Some kind of XML but from several different files at the same time :)
I can ignore starting blocks but I should know an assembly for each test.
Almost all the data lose value because there is no way to define their relationship.

@CharliePoole
Copy link
Collaborator

The issue is that the v2 driver is using the same prefix for both assemblies. Both drivers should get their prefixes from a common source.

@ChrisMaddock
Copy link
Member

Fixed in #564 I believe.

@ChrisMaddock ChrisMaddock added this to the 3.10 milestone Jan 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants