course
JS: Automated testing
14 students
Course updated
03 April 2024
Included in the course
12 lessons (video or text)
10 exercises in the IDE
34 quizzes
Assistance in Discussions on the website
Access to other courses of the our platform
What you'll learn
- Writing better code with fewer bugs than code without tests
- Build the architecture of your code better based on how it will be used
- Write code faster due to automated result check
- Perform code refactoring more often, ridding it of legacy, thanks to the guarantees that tests give
Description
The market-leading programming processes includes automated testing as a key component. The only trustworthy method for verifying that the code is functional is through tests. They do not eliminate bugs, but they do enable you to maintain a manageable amount of them. Tests provide assurance that changes made to one component of the system would not harm other parts.
This course looks at both general test writing principles and contemporary JavaScript testing tools.
Course program
Estimated time: 14 hours
-
2
How and why to write tests?
Understand what tests are supposed to do and what they look like -
3
Assertions
Learn about the assert module and its basic functions for performing checks -
4
power-assert
Learn about a library that dramatically simplifies the analysis of statement output -
7
Unit Tests
Go all the way through writing tests using the example of stack testing -
11
Test-Driven Development (TDD)
Learn more about writing tests before start coding -
13
Do it yourself
Some additional tasks to help you consolidate the theory you've learned -
14
Additional resources
Some materials the Hexlet team have picked up. This will give you a more in-depth understanding of the topic