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
No unit tests exist for the neither the application's API nor views. This implies that testing needs to be done manually whenever a change is made, which can be both time consuming and prone to human error.
Suggested Solution
Create unit tests for all static pages on the portal, and API for endpoints that do not depend on the database.
Static pages include:
Home page
Index of topics
Grade 7 revision
Literacy tests
Numeracy tests
External evaluations
Coach dashboard
API endpoints that do not depend on the database include:
get_server_date
Requirements
The unit tests should basically test that the right content type and status code are returned from each of the concerned pages and endpoints.
A test suite can be set up to bring up and tear down a database containing a known number of users, test_responses etc. This can then be used to unit test all of the other API endpoints.
The text was updated successfully, but these errors were encountered:
Observed behavior
No unit tests exist for the neither the application's API nor views. This implies that testing needs to be done manually whenever a change is made, which can be both time consuming and prone to human error.
Suggested Solution
Create unit tests for all static pages on the portal, and API for endpoints that do not depend on the database.
Static pages include:
API endpoints that do not depend on the database include:
Requirements
Future work
A test suite can be set up to bring up and tear down a database containing a known number of users, test_responses etc. This can then be used to unit test all of the other API endpoints.
The text was updated successfully, but these errors were encountered: