-
Notifications
You must be signed in to change notification settings - Fork 25
TestResult.xml overwritten with multiple targets #69
Comments
Good catch, I never even thought about that. We could append a date string to the end of the run to differentiate although I always hated how MbUnit did that and filled up the output directory. We might also be able to figure out the target and append that. To the runner, each target is a separate independent run that doesn't know about the other. |
Re. Datestring: |
The simplest way would perhaps be to save them in the codebase of the target test assemblies (e.g. I'd be tempted to go with the first option. |
Not a bad idea to just store it there |
Hi there, My scenario is somehow different but same: The tests are all executed but the results of the integrations-tests are overridden by the results of the unit-tests. I might be able to solve this by using the --work parameter like mentioned in Is there a way to specify TestResult.xml location? #100, I'll keep you posted on that. It would be great to have a better solution for this. PS: Thanks for your work with this runner! |
Hello there
first of all, thanks for your work with this runner.
It seems there's an issue with TestResult.xml output file.
Scenario:
A solution has a project-under-test, e.g. class library, targeting 2 frameworks: netstandard1.6 and net452. Same solution also has an NUnit test class library, targeting same 2 frameworks, depending on
"dotnet-test-nunit": "3.4.0-beta-1"
and"NUnit": "3.4.1"
.When running tests from console, those are correctly run for both targets in sequence, as visible from console output:
The issue is that
TestResult.xml
is reused by both and gets overwritten by last target being run.Also, although this is even minor: maybe separation between output from two targets could be highlighted more, e.g. with some heading or spacing after each
Results saved as ...
line.HTH
The text was updated successfully, but these errors were encountered: