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
Not entirely sure if this belongs here, but I specifically see the issue as part of test runs and not while running (dotnet run) the application.
As part of upgrading AspNetCore's repositories to use the RC4 CLI, I noticed that the current directory during test runs is set to the output directory (AppRoot\bin\Debug\netcoreapp1.1) as opposed to the directory from which the test command is called.
With how it is today (path not being next to csproj) if you want to work around #196 you must treat the xunit.runner.json as content so it makes its way to the output directory. If it's changed to be at the csproj level you do not need that extra workaround.
@pranavkm good point. The PR description says "source directory" which at first I though was the project dir, but the code changes ensure working directory is the test assembly location.
@NTaylorMullen good to know. Requiring the build to copy xunit.runner.json to output is consistent with how it worked in project.json
Description
Not entirely sure if this belongs here, but I specifically see the issue as part of test runs and not while running (
dotnet run
) the application.As part of upgrading AspNetCore's repositories to use the RC4 CLI, I noticed that the current directory during test runs is set to the output directory (
AppRoot\bin\Debug\netcoreapp1.1
) as opposed to the directory from which the test command is called.Steps to reproduce
dotnet test
). The test failure should print out the working directory path which would be the project directory.$projectDirectory\bin\Debug\netcoreapp1.0
.Directory.GetCurrentDirectory()
as part ofdotnet run
using the two CLI.RC3 CLI:
1.0.0-rc3-004530
RC4 CLI:
1.0.0-rc4-004756
The text was updated successfully, but these errors were encountered: