Testing is very important part of software development process. Tests serve several purposes. Firstly, they check that your code actually does what it is supposed to. Secondly, they act as a safety-net for refactoring big project and allow better code quality and less manual QA. As a bonus, testable code is usually structured and written better than non-tested code. Automated testing frees us from the need of manually testing our code each time, a task that becomes virtually impossible as the code-base grows.
- Get familiar with variety of client-side testing
- Practice with tools of writing JS test
- Unit tests
- TDD
- BDD
- UI tests
- Tools
- Code coverage
- Linters: ESLint
- Implement FizzBuzz function.
- Add a test case for each possibility, using Mocha.
- Add a FizzBuzz generator function that receives a number N generates a concatenated string with results from #1 from 1 ... N
- Add some tests to #3
- Make sure all tests run in chrome
- Make your test configuration output the code coverage