Skip to content

zaufi/pytest-matcher

Repository files navigation

What is this

PyPI - Version Run Tests Result

This is a pytest plugin that provides a couple of fixtures to match test output against patterns stored in files. Expectation files are placed in a base directory, and additional paths are derived from the test module name, test class name and test function name:

<base-dir>/<test-module-name>/[test-class-name/]<test-function-name>[[<callspec-id>]]

Keeping the expectation files separate from tests reduces the amount of test code and makes it possible to match more than just a few lines of output.

Documentation

The latest documentation can be found here.

See Also

About

A pytest plugin to match test output against patterns stored in files

Topics

Resources

Stars

Watchers

Forks

Contributors