NUnit 3 console runner not reporting all tests in custom commandline script
In a commandline build step using a script so that two test runs can be performed by the Nunit 3 console runner, i see that only the number of tests from the first run is being reported by TeamCity.
Does anyone know why that is?
As it is now the workaround is to only run the console runner once in each build step.
Please sign in to leave a comment.
Hi Bo,
NUnit usually generates a xml report file. If multiple NUnit runs are trying to write the same file, then it's likely that only one is taken. You might want to check the XML Report Processing feature to add extra files if you want to parse and combine different file outputs: https://confluence.jetbrains.com/display/TCD10/XML+Report+Processing
Ok i will check that.
Meanwhile i have checked that TeamCity does count all tests in the build step correct, the problem is with how TeamCity counts tests. See https://youtrack.jetbrains.com/issue/TW-54348 where i have added a request to count tests the same way NUnit does.