gulybyte / sample-todo

Your Own Task Todo Manager. 📚 ☕
Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

Protect branch master automate tests. Closes #13 #30

Closed gulybyte closed 6 months ago

gulybyte commented 6 months ago

Protect code base with tests

Tests are what keep your project alive for years.

Front-end tests were initially planned for this project. But that doesn't mean they won't be written in the future. The decision was that for a small project, where at the moment there's only me as a dev, with a relatively small codebase, it would be somewhat unproductive to implement front-end tests. In larger codebases, front-end test writing becomes necessary, where the team is large and the system has high demand. However, for the beginning of this project, I choose to follow the MVP strategy because if I added too many features/code, I would naturally end up giving up on the project as it would become increasingly difficult to maintain.

Now, regarding back-end tests, this project has the two main types that I consider essential: integration tests and unit tests. Other types of tests in this small project would end up being redundant and unproductive. What is tested includes:

13