skip to navigation
skip to content

Not Logged In

pytest-cpp 0.3.0

Use pytest's runner to discover and execute C++ tests

Latest Version: 0.3.1

Use pytest runner to discover and execute C++ tests.

Supports both Google Test and Boost::Test:

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;
  • Use --junitxml option 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 -k option, etc.;

Usage

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 cpp_files ini configuration:

[pytest]
cpp_files=test_suite*

Default is to match test_* and *_test file names.

Requirements

  • Python 2.7+, Python 3.2+
  • pytest

Install

Install using pip:

$ pip install pytest-cpp

Changelog

Please consult releases.

Support

All feature requests and bugs are welcome, so please make sure to add feature requests and bugs to the issues page!

 
File Type Py Version Uploaded on Size
pytest-cpp-0.3.0.zip (md5) Source 2014-08-26 11KB
pytest_cpp-0.3.0-py2.py3-none-any.whl (md5) Python Wheel 2.7 2014-08-26 9KB
  • Downloads (All Versions):
  • 13 downloads in the last day
  • 161 downloads in the last week
  • 559 downloads in the last month