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

Test reports not merged when running "multiple" execution path and tests are failing #57

Open
m00ndark opened this issue May 9, 2019 · 2 comments

Comments

@m00ndark
Copy link

m00ndark commented May 9, 2019

When ending up in multipleRunsExecute https://github.com/Ullink/gradle-nunit-plugin/blob/master/src/main/groovy/com/ullink/gradle/nunit/NUnit.groovy#L222 and exception is thrown in execute https://github.com/Ullink/gradle-nunit-plugin/blob/master/src/main/groovy/com/ullink/gradle/nunit/NUnit.groovy#L315 merging of test results are not done, i.e. outputFile https://github.com/Ullink/gradle-nunit-plugin/blob/master/src/main/groovy/com/ullink/gradle/nunit/NUnit.groovy#L236 will not exist afterwards.

@tephe
Copy link
Contributor

tephe commented May 18, 2019

The merging of tests results only works for nunit2 result format. So you need to specify restulFormat='nunit2' . Perhaps that is the issue?

Added a functional test that runs nunit in parallel so you can see a working build.gradle file example #59 .

@ngyukman
Copy link
Contributor

I think the problem is that it throws exception as nunit is returning a non-zero exit code when there are failing test cases, thus causing the merge skipped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants