Path to this page:
./
devel/py-test-snapshot,
Plugin for snapshot testing with pytest
Branch: CURRENT,
Version: 0.9.0,
Package name: py312-test-snapshot-0.9.0,
Maintainer: pkgsrc-usersA plugin for snapshot testing with pytest.
This library was inspired by jest's snapshot testing. Snapshot
testing can be used to test that the value of an expression does
not change unexpectedly. The added benefits of snapshot testing
are that
* They are easy to create.
* They are easy to update when the expected value of a test
changes.
Instead of manually updating tests when the expected value of an
expression changes, the developer simply needs to
* run pytest --snapshot-update to update the snapshot tests
* verify that the snapshot files contain the new expected results
* commit the snapshot changes to version control
Master sites:
Filesize: 19.411 KB
Version history: (Expand)
- (2024-11-11) Updated to version: py312-test-snapshot-0.9.0
- (2024-07-29) Package added to pkgsrc.se, version py311-test-snapshot-0.9.0 (created)
CVS history: (Expand)
2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862) |
Log message:
py-*: remove unused tool dependency
py-setuptools includes the py-wheel functionality nowadays
|
2024-07-29 09:08:45 by Thomas Klausner | Files touched by this commit (1) |
Log message:
py-test-snapshot: let PKGNAME match directory name
|
2024-07-29 09:07:10 by Thomas Klausner | Files touched by this commit (4) | |
Log message:
devel/py-test-snapshot: import py-pytest-snapshot-0.9.0
A plugin for snapshot testing with pytest.
This library was inspired by jest's snapshot testing. Snapshot
testing can be used to test that the value of an expression does
not change unexpectedly. The added benefits of snapshot testing
are that
* They are easy to create.
* They are easy to update when the expected value of a test
changes.
Instead of manually updating tests when the expected value of an
expression changes, the developer simply needs to
* run pytest --snapshot-update to update the snapshot tests
* verify that the snapshot files contain the new expected results
* commit the snapshot changes to version control
|