Verify is a snapshot tool that simplifies the assertion of complex data models and documents.
Verify is called on the test result during the assertion phase. It serializes that result and stores it in a file that matches the test name. On the next test execution, the result is again serialized and compared to the existing file. The test will fail if the two snapshots do not match: either the change is unexpected, or the reference snapshot needs to be updated to the new result. When snapshots do not match, the difference is automatically displayed in a diff tool.
A pluggable model is provided for a variety of scenarios including:
A number of these scenarios have be pre-packaged. For example:
- Verification of Blazor components
- Comparison of images via Phash.
- Verification of web sites using Selenium.