snapshooter
snapshooter copied to clipboard
Snapshot.Match() does not work with Visual Studio Live Unit Testing
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:
- Write an unit test with snapshot comparison
- Enable live unit testing
- 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
Any progress on this?