snaptol.plugin

snaptol.plugin#

Functions

pytest_addoption(parser)

Adds the --snaptol-update command line option to pytest.

pytest_collection_modifyitems(config, items)

Modifies the collection of test items based on snapshot update options.

pytest_configure(config)

Validates command line option combinations for snaptol snapshot management.

pytest_deselected(items)

Stores deselected test items for later processing during the test session cleanup.

pytest_sessionfinish(session)

Runs after all tests are completed.

pytest_terminal_summary(terminalreporter, config)

Reports to the terminal information regarding the tests performed and any information requested by the user during the test session, such as snapshot differences or cache usage.

snaptolshot(request)

A pytest fixture that provides a Snapshot object tied to the current test request.