Ivan-Johnson / LifeLogServer

A DIY life tracking app
0 stars 0 forks source link

Enhance the testing system #27

Closed Ivan-Johnson closed 4 years ago

Ivan-Johnson commented 4 years ago

A stack exchange answer (https://stackoverflow.com/a/54898684) suggests marking the type of each test. Choose a set of marks to create and use them (e.g. unit, integration, and end-to-end).

Then use pytest -m "unit and not integtest"-like syntax for running particular types of tests; enhance the test script to allow for specifying a particular type of test.

Finally, setup some sort of system for automatically running tests locally; at a minimum, use git hooks to run all tests when merging into major branches.