FSU-ACM/Contest-Server

Introduce comprehensive testing

Closed this issue · 1 comments

We've had the recurring issue of changes causing intended breakages. Introducing comprehensive functionality tests would help mitigate this issue.

As a flask webapp, there is not very much distinction between the UI and the REST API. Perhaps we can achieve all the tests by POSTing to the correct routes, and then reading the results directly from the database?

We can also unit test using pytest.

Here's a list of the packages which still need pytests written for them (modules/classes in packages not listed):

Modules

  • app.forms
    • team
  • app.models
  • app.util
  • app.views
    • account
    • admin
    • auth
    • register
    • team

Tests are located in the tests/ directory off of root.