What to test
A key factor in the success of a good testing plan and implementation is deciding what to test. It is not possible to test the full universe of possibilities or 100% of the components and interactions in a project when considering internal and external factors. Even the attempt to fully cover all possibilities would be incredibly expensive and practically impossible. Instead, the focus needs to be on the real possibilities of what can be tested within our time and budget constraints, by carefully selecting the non-trivial elements that “make or break” our project requirements. This is often not an easy task.
When it comes to Vue applications, we need to focus on crucial services and components that perform key operations. We need to test the following:
- Services: Self-contained functions, both synchronous and asynchronous. Functions that don’t return a value but perform logical procedures will serve a different kind of testing than what we...