snapshooter icon indicating copy to clipboard operation
snapshooter copied to clipboard

Snapshot.Match() does not work with Visual Studio Live Unit Testing

Open kfrajtak opened this issue 3 years ago • 1 comments

Describe the bug When using snapshooter with VS.NET Live Unit Testing following message is written to output

Message: 
    Snapshooter.Exceptions.SnapshotTestException : Could not resolve directory for SnapShot
Stack Trace: 
    LiveUnitTestingDirectoryResolver.CheckForSession(SnapshotFullName snapshotFullName)
    XunitSnapshotFullNameReader.ReadSnapshotFullName()
    SnapshotFullNameResolver.ResolveSnapshotFullName(String snapshotName, String snapshotNameExtension)
    Snapshooter.ResolveSnapshotFullName(String snapshotName, SnapshotNameExtension snapshotNameExtension)
    Snapshot.FullName()
    Snapshot.Match(Object currentResult, Func`2 matchOptions)
    SnapshotExtension.MatchSnapshot(Object currentResult, Func`2 matchOptions)
    SchemaTests.Ensure_Schema_IsCorrect()
--- End of stack trace from previous location where exception was thrown ---

To Reproduce Steps to reproduce the behavior:

  1. Write an unit test with snapshot comparison
  2. Enable live unit testing
  3. See error

Expected behavior I would expect the test to complete.

Desktop (please complete the following information):

  • OS: Win10
  • VS.NET Version 16.7.2
  • Snapshooter.Xunit 0.5.6

kfrajtak avatar Sep 02 '20 18:09 kfrajtak

Any progress on this?

kfrajtak avatar Jun 16 '21 15:06 kfrajtak