snapshooter icon indicating copy to clipboard operation
snapshooter copied to clipboard

In WSL2 snapshooter uses Windows directory path

Open jorisdebock opened this issue 1 year ago • 0 comments

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

jorisdebock avatar Apr 28 '23 20:04 jorisdebock