matheusgomes28 / urchin

Headless CMS written in Golang
MIT License
60 stars 19 forks source link

🖥️ System Tests with Coverage #55

Closed matheusgomes28 closed 5 months ago

matheusgomes28 commented 5 months ago

Certain lines aren't reachable from the unit tests. For example, testing the database code should be done on a full-scale system test, to make sure that, from a clean state, users can add posts and see them.

Some areas that could use system tests:

We should basically have tests for major features of urchin.

matheusgomes28 commented 5 months ago

Partly worked on with #57 . Still TODOS:

The above should provide a lot of line coverage and I can consider closing this task then.

For anyone interested, the initial skeleton code for the system tests can be found at tests/system_tests/endpoint_tests/*.go