syrusakbary / snapshottest

Snapshot Testing utils for Python 📸
MIT License
537 stars 102 forks source link

Don't report snapshots as deprecated if the test hasn't been run #55

Open matangover opened 6 years ago

matangover commented 6 years ago

When running only some of the tests (e.g. executing only one test from a test file), snapshottest will report all the snapshots from the tests that haven't been run as deprecated. This is wrong - the snapshots aren't deprecated, they simply haven't been tested.

snapshottest should be able to track which tests have been executed in the current test run and only report deprecated snapshots from tests that have been executed.

paulmelnikow commented 4 years ago

Is it possible, I wonder, for snapshottest to know whether tests that haven't been executed have referenced the snapshottest plugin?