Comp-490-SeniorProject / site

MIT License
0 stars 1 forks source link

Create a workflow for automated testing #2

Closed MarkKoz closed 3 years ago

MarkKoz commented 3 years ago

The plan is to use pytest as the testing framework, since it uses a more idiomatic design than the first-party "unittest" module. To glue Django and pytest together, use pytest-django. This has already been included in pyproject.toml. However, it seems it will still need to be configured to properly discover tests. Set up instructions are here. Note that pytest.ini settings can actually be specified inside pyroject.toml (there's already an example in the file on the main branch).

Once that's all set up, a workflow in GitHub actions should be created to run the tests. It would be best to include it in the same workflow as the one for #1. See that issue for more details and for an example workflow.