[pytest-dev] pytest does not collect test-cases - what am I doing wrong?

2020-01-16 Thread Hartmut Goebel
Hi, my package layout follows the "Tests as part of application code" [1]: src/mypkg/__init__.py src/mypkg/app.py src/mypkg/test/__init__.py src/mypkg/test/test_hooksample_packaging.py where "__pyinstaller" contains the tests to be picked up. 1. When running "python3 -m pytest src/mypkg/test" N

Re: [pytest-dev] pytest does not collect test-cases - what am I doing wrong?

2020-01-16 Thread Bruno Oliveira
Hi Harmut, It works for me when I use your repository directly: λ pip install pytest PyInstaller λ python -m pytest src test session starts platform win32 -- Python 3.6.8, pytest-5.3.2, py-1.8.1, pluggy-0.13.1 rootdir: C:\Users\bruno\hooksample co

Re: [pytest-dev] pytest does not collect test-cases - what am I doing wrong?

2020-01-16 Thread Hartmut Goebel
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

Re: [pytest-dev] pytest does not collect test-cases - what am I doing wrong?

2020-01-16 Thread Bruno Oliveira
Hi! Thanks for the branches, I managed to reproduce the issue but only after installing the exact same versions of pytest, pluggy, and plugins. The problem is the pytest-drop-dup-tests plugin, if I pass -p no:drop-dup-tests, the test is collected and executed as normal. If you really need to use

Re: [pytest-dev] pytest does not collect test-cases - what am I doing wrong?

2020-01-16 Thread Hartmut Goebel
Hi, Thanks you very much for evaluating this so quickly :-) I was able to work around the issue by uninstalling pytest-drop-dup-tests. Nevertheless I opens an issue there so this doesn't get lost.| | |https://github.com/nicoddemus/pytest-drop-dup-tests/issues/3 | -- Regards Hartmut Goebel | H

Re: [pytest-dev] pytest does not collect test-cases - what am I doing wrong?

2020-01-16 Thread Bruno Oliveira
Hi Hartmut. Sure thing, thanks for creating the issue and maintaining PyInstaller. :) (FWIW in case you didn't know already, we freeze pytest as part of our suite using PyInstaller: https://github.com/pytest-dev/pytest/blob/b91c721262a57ca265eace37daf79475abf4cd91/.github/workflows/main.yml#L86-L