Testing and Source Control
The success of our application depends on many factors, beyond the quality of our code organization or patterns. Moreover, the very nature of software implies that there will be changes during and after development, changes in the requirements, the scope, and so on. With each feature developed, an item of complexity is introduced into the software, creating relationships and dependencies. New inclusions may disrupt these connections and introduce breaking changes, bugs, or even completely disable the system. The solution for this problem is to keep track of code changes and conduct tests on the application to identify problems and ensure as much as possible that the system complies with the desired software attributes and satisfies the requirements.
In this chapter, we will cover the following:
- Different approaches to testing and the concept of test-driven development (TDD)
- Installing a test suite (Vitest) and test tools (Vue Test Utils) for...