Comparison
expecttest vs inline-snapshot vs localstack-snapshot vs snapshottest
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Low maintenance activity. Last release 24 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install expecttestgolden master/snapshot/approval testing library which puts the values right into your source code
Actively maintained. Last release 13 days ago, commits in 13 of the last 26 weeks. A safe choice.
pip install inline-snapshotExtracted snapshot testing lib for LocalStack
Actively maintained. Last release 4 weeks ago, commits in 5 of the last 26 weeks. A safe choice.
pip install localstack-snapshotSnapshot testing for pytest, unittest, Django, and Nose
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install snapshottestIn short
- snapshottest is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- inline-snapshot is the most used: 2.6M downloads a month, 1.9× more than expecttest.
- Maintenance is comparable: inline-snapshot 84, localstack-snapshot 77, expecttest 29 on Pythie’s Index.
- localstack-snapshot is growing fastest: downloads +47% over the last month.
- Safe default for a new project: inline-snapshot.
Side by side
| Metric | expecttest | inline-snapshot | localstack-snapshot | snapshottest |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 29 | 84 |