You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to System.IO.Abstractions.TestHelpers@2.1.0.230 we get the following error:
Starting test execution, please wait...
[xUnit.net 00:00:02.04] Stryker.Core.UnitTest.MutationTest.MutationTestProcessTests.MutationTestProcess_MutateShouldWriteToDisk_IfCompilationIsSuccessful [FAIL]
Failed Stryker.Core.UnitTest.MutationTest.MutationTestProcessTests.MutationTestProcess_MutateShouldWriteToDisk_IfCompilationIsSuccessful
Error Message:
System.IO.DirectoryNotFoundException : Could not find a part of the path 'c\ExampleProject.Test\bin\Debug\netcoreapp2.0\ExampleProject.dll'.
Stack Trace:
at System.IO.Abstractions.TestingHelpers.MockFile.Create(String path)
at Stryker.Core.MutationTest.MutationTestProcess.Mutate() in C:\projects\stryker-net\src\Stryker.Core\Stryker.Core\MutationTest\MutationTestProcess.cs:line 78
at Stryker.Core.UnitTest.MutationTest.MutationTestProcessTests.MutationTestProcess_MutateShouldWriteToDisk_IfCompilationIsSuccessful() in C:\projects\stryker-net\src\Stryker.Core\Stryker.Core.UnitTest\MutationTest\MutationTestProcessTests.cs:line 207
[06:21:53 ERR] The task PrintReferences was not found in your project file. Please add the task to ExampleProject.Test.csproj
@simondel We are now a bit more restrictive on what can be at the beginning of a path - the exception mentions a path that starts with c\ - this is will probably be the issue here.
@simondel The DirectoryNotFound exception is by design, see #227, to mirror the behavior of System.IO.
Previously all unit tests have been green (using the Mock) but it crashed in production (not using the mock but system.io)
After upgrading to System.IO.Abstractions.TestHelpers@2.1.0.230 we get the following error:
The mock in question is created here: https://github.com/stryker-mutator/stryker-net/blob/master/src/Stryker.Core/Stryker.Core.UnitTest/MutationTest/MutationTestProcessTests.cs#L181
And is the error probably occurs here:
https://github.com/stryker-mutator/stryker-net/blob/master/src/Stryker.Core/Stryker.Core/MutationTest/MutationTestProcess.cs#L78
Has something changed in the api with System.IO.Abstractions.TestHelpers@2.1.0.230?
The text was updated successfully, but these errors were encountered: