snapshooter
snapshooter copied to clipboard
Visual Studio extension to inspect snapshots
Is your feature request related to a problem? Please describe. If there are many snapshot files, it gets really tedious to look up the snapshot files and most of the time I just delete the entire snapshot directory, re-run the tests and then inspect the diff to the files using git. Arguably not a great workflow...
Describe the solution you'd like I would like an extension for Visual Studio that is similar to what @PascalSenn has built for VS Code in https://github.com/PascalSenn/snapshooter-vscode It should have the following capabilities:
- Quickly jump to or a peek a snapshot of a certain test
- View the diff between an existing snapshot and the mismatched snapshot and a button in the diff view to accept the mismatched snapshot as the new one.
I tried to create an extension myself over the weekend, but everything surrounding CodeLens extensions is not well documented and I couldn't even get a sample working in Visual Studio 2022. Decided it's not worth my time at this moment, but I might try again, if the official samples are updated / there is some more documentation.