Py.test with non-python tests (specifically cxxtest)

I work with a team that develops numerical applications based on C ++ based on MPI. The group uses cxxtest to build separate unit tests or small suites, but 1) there are some difficulties combining directories with the usual cxxtest functions, and 2) there are some integration tests that are simply easier to implement “externally” by running mpirun from a single python stream.

We would like to use py.test as the glue that holds it together, as it advertises itself as being able to run tests other than python (I could make sure it jumped into the nose).

Can someone get me to start working on best practice for this? Again, since this is apparently one of the advertised py.test functions, I would love to work with it the way it was originally intended.

Thank,

Eli

+5
source share
3 answers

This guide to the February 2014 There are several examples pytest use to run tests C, may be it will help.

+1
source

Checkout pytest-cpp , this may be exactly what you need.

+1
source

All Articles