Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipping invalid test suites #40

Open
KBac opened this issue Jan 17, 2019 · 3 comments
Open

Skipping invalid test suites #40

KBac opened this issue Jan 17, 2019 · 3 comments

Comments

@KBac
Copy link

KBac commented Jan 17, 2019

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?

@nicoddemus
Copy link
Member

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?

@KBac
Copy link
Author

KBac commented Jan 18, 2019

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

@KBac
Copy link
Author

KBac commented Jan 18, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants