You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unknown marking detected by pytest: pytest.mark.task #2536
This marker seems to be not defined anywhere on resources given to a student (see docs folder). Thus with typical installation using virtual environment with only pytest and pytest-cache installed as suggested in TEST.md file, a student will get a warning such as below. I suggest to extend documentation or a setup, which student downloads using exercism command by including this mark at least as suggested in official documentation
Hi @eirnym 👋🏽 Thanks for logging this issue! Yes - agree we should have instructions (at the very least) on how to register the marks - or a pytest.ini file that can be used so that PyTest won't complain locally.
The marks are not for selecting tests or resources -- they're being used by our track test runner to associate Concept exercise task numbers to tests, so that the website UI display can show the test code in task order after a test run (the web UI doesn't display the test file for concept exercises).
We use the same test files for the website that are downloaded via the CLI -- so unfortunately, the mark shows up for local runs as well. If you are curious about the test runner interface, you can take a look at this specification for track test runners.
The marks aren't being used meaningfully in the CLI context right now.
We haven't gotten around to updating the "run this locally" documentation yet with register/disable/config info. 😅 Hopefully, we can do that soon, and also include a pytest.ini file as part of the general exercise download.
Meanwhile, you can avoid the nag by running pytest locally with the --disable-pytest-warnings flag, or adding the following in a pytest.ini file in the exercism python directory:
Activity
BethanyG commentedon Sep 4, 2021
Hi @eirnym 👋🏽 Thanks for logging this issue! Yes - agree we should have instructions (at the very least) on how to register the marks - or a
pytest.inifile that can be used so that PyTest won't complain locally.The marks are not for selecting tests or resources -- they're being used by our track test runner to associate Concept exercise
task numberstotests, so that the website UI display can show the test code in task order after a test run (the web UI doesn't display the test file for concept exercises).We use the same test files for the website that are downloaded via the CLI -- so unfortunately, the mark shows up for local runs as well. If you are curious about the test runner interface, you can take a look at this specification for track test runners.
The marks aren't being used meaningfully in the CLI context right now.
We haven't gotten around to updating the "run this locally" documentation yet with register/disable/config info. 😅 Hopefully, we can do that soon, and also include a
pytest.inifile as part of the general exercise download.Meanwhile, you can avoid the nag by running pytest locally with the
--disable-pytest-warningsflag, or adding the following in apytest.inifile in the exercismpythondirectory:BethanyG commentedon Sep 4, 2021
I've logged the
inifile and documentation tasks as bug #2539.eirnym commentedon Sep 4, 2021
why this issue is not a bug report?
BethanyG commentedon Sep 4, 2021
Because I was tired, and had also re-logged this as issue #2539, for clarity in what needs changing. 😄 Closing this now in favor of that issue.