SnailyCAD / snaily-cadv4

💻 An open source Computer Aided Dispatch (CAD) for FiveM, this is a web based integration for communities who love police roleplaying and dispatching. Discord: https://discord.gg/eGnrPqEH7U
https://docs.snailycad.org/docs/getting-started
MIT License
140 stars 85 forks source link

Setup API tests #1873

Open casperiv0 opened 9 months ago

casperiv0 commented 9 months ago

To keep SnailyCAD maintainable, we need tests. We have a lot of API routes which are not tested, only tested during development. This is fine, but comes with a large drawback: when a new feature is added, parts of the code get changed, therefore sometimes stuff could break. Tests can assure us that the feature will break or continue working on feature additions or large changes.

This is a rather extremely large task, but should pay off in the longer run. We should do this incrementally to make sure we test everything properly.

Additional Context