Document how to run tests
kevinhowbrook opened this issue · comments
I can see tox and coverage and a great suite of tests - would it be possible to document how to run the tests locally?
If I get some guidance here I'd be happy to make a PR myself for it. Also, I'd like to add the coverage report to the pipeline, and update contribution guidelines for checking tests are passing still.
https://github.com/torchbox/wagtailmedia#how-to-run-tests should give you an idea on running the tests.
https://github.com/wagtail/wagtail-localize/blob/main/.github/workflows/test.yml#L105 or https://github.com/torchbox/wagtailmedia/blob/main/.github/workflows/test.yml#L70 for coverage in CI
I couldn't get django-admin test
or coverage
or tox
working locally but pytest
does work. It's mentioned briefly here: https://github.com/torchbox/tbxforms/blob/main/CONTRIBUTING.md#publishing It might be better to add that to the readme instead.
Documentation has now been added: https://github.com/torchbox/tbxforms/blob/main/CONTRIBUTING.md#python-testing