Use pytest runner to discover and execute C++ tests.
This brings several benefits:
- Allows you to run all your tests in multi-language projects with a single command;
- Execute C++ tests in parallel using pytest-xdist plugin;
--junitxmloption to produce a single and uniform xml file with all your test suite results;
- Filter which tests to run using standard test filtering capabilities, such as
by file names, directories, keywords by using the
Once installed, when py.test runs it will search and run tests founds in executable files, detecting if the suites are Google or Boost tests automatically.
You can configure which files are tested for suites by using the
By default matches
*_test executable files.
- Python 2.7+, Python 3.4+
Install using pip:
$ pip install pytest-cpp
Please consult CHANGELOG.
All feature requests and bugs are welcome, so please make sure to add feature requests and bugs to the issues page!