Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In WSL2 snapshooter uses Windows directory path #182

Open
jorisdebock opened this issue Apr 28, 2023 · 0 comments
Open

In WSL2 snapshooter uses Windows directory path #182

jorisdebock opened this issue Apr 28, 2023 · 0 comments

Comments

@jorisdebock
Copy link

Describe the bug
When running the tests in visual studio on a remote test environment, in this case WSL2. The directory for the snapshot is resolving to the windows path instead of the linux path. Causing the snapshooter files to be in the wrong directory

directory name:

Cdevprojectsxxxx-apitestxx.Api.Tests

To Reproduce
Steps to reproduce the behavior:

  1. Create a xunit test using snapshoot MatchSnapshot
  2. Run the tests in visual studio using remote test environments WSL2
  3. In the debug folder a new folder is created with the directory path (windows) as directory name. (Windows path is used in the linux environment)

Expected behavior
Linux path to be used

/mnt/c/dev/projects/xx/xx-api/test/xx.Api.Tests

Desktop (please complete the following information):

  • OS: Windows
  • Version 10

WSL2

  • Ubuntu 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant