Skip to content

--markers output does not include markers from plugins in subdirs #425

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

Closed
pytestbot opened this issue Jan 20, 2014 · 1 comment
Closed
Labels
type: bug problem that needs to be addressed

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Jurko Gospodnetić (BitBucket: jurko, GitHub: jurko)


When pytest is called with the '--markers' option, it does not seem to collect
marker information from plugins in subdirs on time. They get loaded and used
correctly for the actual test run, but --markers output does not include
information on them.

Pull request #104 includes a prepared unit test reproducing and testing for this behaviour.

I noticed this on the suds-jurko package where running the tests using Python 2 shows --markers correctly, while running them using Python 3 (tests get run from a different folder after running py2to3 on the entire source base), locally defined plugin markers are not listed. The plugins themselves still get loaded and used correctly for the actual test run, but that seems to occur only after pytest prepares its --markers output.

Hope this helps.

Best regards,
Jurko Gospodnetić


@pytestbot
Copy link
Contributor Author

Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42):


fix issue425: mention at end of "py.test -h" that --markers
and --fixtures work according to specified test path (or current dir)

@pytestbot pytestbot added the type: bug problem that needs to be addressed label Jun 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug problem that needs to be addressed
Projects
None yet
Development

No branches or pull requests

1 participant