[pytest-dev] pytest does not collect test-cases - what am I doing wrong?
Hartmut Goebel
h.goebel at crazy-compilers.com
Thu Jan 16 09:38:08 EST 2020
Hi Bruno,
> But the instructions you wrote don’t fit the repository, so I suspect
> you have changed the layout since writing your original email. Could
> you please perhaps pushing to a branch
Sorry, I wanted to list the files in a way easy to understand.
Now the repo <https://github.com/pyinstaller/hooksample/> contains two
branches:
1. "one-level-less": test-cases are in src/pyi_hooksample/__pyinstaller
pytest src/pyi_hooksample/__pyinstaller
-> NO tests will be picked up
2. master: test-cases are in src/pyi_hooksample/__pyinstaller/t (mind
the trailing t)
pytest src/pyi_hooksample/__pyinstaller/t
-> NO tests will be picked up
pytest src/pyi_hooksample/__pyinstaller # one level above the test
-> NO tests will be picked up
=> When pointing pytest to the package containing the tests, they will
NOT be picked up
=> When pointing pytest to the parent package the tests will be picked up
(My aim is to have a layout like in "one-level-less" and point pytest to
src/pyi_hooksample/__pyinstaller.)
platform linux -- Python 3.7.5, pytest-5.0.1, py-1.8.0, pluggy-0.12.0
plugins: cov-2.7.1, drop-dup-tests-0.1.0, forked-1.0.2, timeout-1.3.3,
xdist-1.29.0
--
Regards
Hartmut Goebel
| Hartmut Goebel | h.goebel at crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
More information about the pytest-dev
mailing list