zaufi / pytest-matcher

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

Home Page:https://pytest-matcher.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is this

PyPI - Version Run Tests Result

This is a pytest plugin provides a couple of fixtures to match test output against patterns stored in files. Expectations/pattern files are stored in a base directory, and additional paths are based on the test module name, test class name, and test function name:

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

Having output expectations/pattern files separate from tests helps to reduce the code of the latter and match the output more than just a few lines.

Documentation

The latest documentation could be found here.

See Also

About

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

https://pytest-matcher.readthedocs.io

License:GNU General Public License v3.0


Languages

Language:Python 98.4%Language:Jinja 1.6%