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

Identify the markers for which a corresponding test file does not exist #3416

Closed
buddhadev opened this issue Apr 20, 2018 · 3 comments
Closed
Labels
topic: marks related to marks, either the general marks or builtin type: question general question, might be closed after 2 weeks of inactivity

Comments

@buddhadev
Copy link

buddhadev commented Apr 20, 2018

Is there a way to list the markers for which a corresponding test file was not found?

pytest Version: 3.0.7

Scenario -
In my tests/ directory, I have 2 test files marked using @pytest.mark as @pytest.mark.tc1 and @pytest.mark.tc2 respectively

pytest command -
$ pwd ----> tests/
$ pytest -m 'tc1 or tc3 or tc4'

I would like to see that the tests for tc3 and tc4 markers don't exist in the directory tests/. Please advise!

@pytestbot pytestbot added the platform: mac mac platform-specific problem label Apr 20, 2018
@buddhadev buddhadev changed the title Identify the markers for which a corresponding test file was not found Identify the markers for which a corresponding test file does not exist Apr 20, 2018
@RonnyPfannschmidt RonnyPfannschmidt added type: question general question, might be closed after 2 weeks of inactivity topic: marks related to marks, either the general marks or builtin and removed platform: mac mac platform-specific problem labels Apr 20, 2018
@buddhadev
Copy link
Author

@RonnyPfannschmidt Any ideas?

@Zac-HD
Copy link
Member

Zac-HD commented Dec 5, 2018

This is not possible, as there could be arbitrary marks.

@Zac-HD Zac-HD closed this as completed Dec 5, 2018
@RonnyPfannschmidt
Copy link
Member

@buddhadev you'd have to implement a own mark expression checker as of now

@pytest-dev pytest-dev deleted a comment from pytestbot Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: marks related to marks, either the general marks or builtin type: question general question, might be closed after 2 weeks of inactivity
Projects
None yet
Development

No branches or pull requests

4 participants