August 2018
Beginner
160 pages
4h 8m
English
To prove the point that pytest's framework is very flexible, the pytest-cpp plugin allows you to run tests written in Google Test (https://github.com/google/googletest) or Boost.Test (https://www.boost.org), which are frameworks for writing and running tests in the C++ language.
After they are installed, you just need to run pytest as normal:
λ pytest bin/tests
Pytest will find executable files containing test cases, detecting automatically whether they are written in Google Test or Boost.Python. It will run the tests and report results normally, with neat formatting that is familiar to pytest users.
Running those tests with pytest means that they now can make use of several features, such as parallel running with pytest-xdist ...
Read now
Unlock full access