pytest-cpp icon indicating copy to clipboard operation
pytest-cpp copied to clipboard

Skipping invalid test suites

Open KBac opened this issue 7 years ago • 3 comments

Hi, Now pytest-cpp just skip executable if it's not a valid test suite. Sometimes it leads to a situation when we just skip some tests without any notification just because they fail on start. So we get clean test report though we have a serious issue. Is it possible to catch invalid test suites and add them to the xml report?

KBac avatar Jan 17 '19 00:01 KBac

Hi @KBac,

Hmm yeah I think this has happened with me a few times in the past. Seems like an useful feature. I suspect you are using GoogleTests, is that right?

nicoddemus avatar Jan 17 '19 22:01 nicoddemus

Hi @nicoddemus , You are right. I'm using gtest.

KBac avatar Jan 18 '19 00:01 KBac

And for example, I occasionally link my tests with shared library instead of static. So when pytest runs them they even don't start as they can't find this *.so file. I realized that I have an issue just because the number of tests in test report became dramatically low. But all of them passed.

KBac avatar Jan 18 '19 00:01 KBac