From the course: Node.js: Testing and Code Quality
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Coverage with continuous integration
From the course: Node.js: Testing and Code Quality
Coverage with continuous integration
- [Instructor] Code coverage can be reported automatically with a technique called continuous integration. What's that ? Continuous integration is a technique for continually executing tasks on your code. When code is merged into a central repository like pushing a change to a code, versioning repository automated builds can run and tests executed. For example, unit tests and coverage reports linting tasks to check for suspicious code, and functional testing can be run automatically. The results can be used to report problems immediately to a developer warning about potential issues with their changes. The end result is an improvement in software quality assuming the feedback is addressed. There are a number of options for open source continuous integration tools that you can host yourself. Each of the following are extensible using plugins and configuration. And as a result are flexible for many different use cases.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Why code coverage matters5m 22s
-
(Locked)
Measuring code coverage with Jest5m 54s
-
(Locked)
Functional testing with Jest4m 1s
-
(Locked)
Test doubles and Express apps5m 53s
-
(Locked)
Form submissions with SuperTest6m 9s
-
(Locked)
Fallacies of 100% test coverage4m 19s
-
(Locked)
Coverage with continuous integration4m 34s
-
(Locked)
Challenge: Isolate routes for faster tests39s
-
(Locked)
Solution: Isolate routes for faster tests9m 27s
-
(Locked)
-