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

Does not find tests without layer when called with -k #4

Open
sallner opened this issue Nov 25, 2019 · 2 comments
Open

Does not find tests without layer when called with -k #4

sallner opened this issue Nov 25, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@sallner
Copy link
Member

sallner commented Nov 25, 2019

transferred from bitbucket:

Michael Howitz created an issue 2015-09-03
If there is a test class which does not have a layer and the tester wants to run only this test class using -k py.test does not find the class and does not run its tests. The same seems to be true for the test methods on such a class.

@sallner sallner added the bug Something isn't working label Nov 25, 2019
@icemac
Copy link
Member

icemac commented May 10, 2021

Possibly current versions of gocept.pytestlayer even do not at all find doctests without having a layer being set on the DocTestSuite.

icemac pushed a commit that referenced this issue May 10, 2021
Use `gcoept.pytestlayer.doctest.DocTestSuite` instead of `doctest.DocTestSuite` to circumvent the issue.
@icemac
Copy link
Member

icemac commented May 11, 2021

The README.rst says: "A doctest.DocFileSuite which does not have a layer is silently skipped. Use the built-in doctest abilities of pytest to run those tests."

icemac pushed a commit that referenced this issue May 19, 2021
Use `gcoept.pytestlayer.doctest.DocTestSuite` instead of `doctest.DocTestSuite` to circumvent the issue.

Co-authored-by: Steffen Allner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants