Closed pedrostc closed 4 years ago
I have the same problem. Changing the test runner to dotnettest stops it crashing but the output is unexpected:
[15:25:58 INF] Started initial build using dotnet build [15:26:00 INF] Initial build successful [15:26:00 INF] Using testrunner DotnetTest [15:26:00 INF] Total number of tests found: Unable to detect [15:26:00 INF] Initial testrun started [15:26:20 INF] Using 40532 ms as testrun timeout [15:26:23 INF] 17 mutants got status CompileError. Reason: Could not compile [15:26:23 INF] 11 mutants got status Skipped. Reason: Removed by method filter [15:26:23 INF] 132 mutants ready for test [15:26:23 INF] Capture mutant coverage using 'perTest' mode. [15:26:34 INF] 11 mutants are not reached by any tests and will survive! (Marked as Survived). [15:26:34 INF] Coverage analysis eliminated 100.00% of tests (i.e. -132 tests out of -132).
But it did continue and created a report that looked correct.
Hey, thank you for the reports!
It is expected that a bug with VsTest would not be present with dotnet test. The output does appear to be wrong, it looks like the coverage analysis statistic might not expect the 'Unable to detect' total number of tests.
Does the problem occur in every testrun or only in some?
@pedrostc I tested the newly released 0.14.2 on your project and the issue has been resolved for me
Thanks for the fix, it looks like some regression I introduced while fixing the AppdDomain issue. But this issue also demonstrates that some error handling/reporting could be improved in that area. I will open issue(s) for these.
Can confirm - thanks for the quick fix!
@dupdob Actually I'm fairly sure I introduced the regression when I moved the logic from the VsTestRunner to the ProjectInfo 👎
Hey just confirmed that everything is working just fine now. Thanks a lot for the quick response o/
Describe the bug I'm getting a
System.OperationCanceledException
when running stryker on my project. Also tested withNetCoreTestProject.XUnit
project from this repo and could observe the same behaviour.Logs
Expected behavior Stryker should be able to run the mutations.
Desktop (please complete the following information):
Additional context My project is using xUnit as the test framework. Tested with the
DotNetTest
test runner on version 0.14.1 and it worked as expected. Tested with stryker version 0.14.0 and it works for both test runners (VsTest and DotNetTest) I tried to change my project`s Target Framework version to 3.0 and 2.2 but the same problem still happens. Project repo for reference: https://github.com/pedrostc/PrivateCodeCoverage