In this video, Meaghan Lewis highlights the fact that tests should be run often and report back data about their state. Learn about the reporting that test runners offer.
- [Instructor] Once tests are written…the fun can really start.…The whole idea about tests…is to run them over and over again.…With all that test running going on…it's a good idea to have a way to…easily run tests in a repeatable way…and see the results of those test.…I'll show an example of running test…and reporting results now with Mocha.…To get started I'll hop over to my terminal.…Once there, there's a couple different ways…that I can run my test.…
Initially, after the Mocha package is installed…I can specify the location to…the Mocha package to run my test.…This command looks like ./node_modules/mocha/bin/mocha…and then I specify a test file…and this can quickly run my unit test.…I can also type mocha to run all of the test…or pass in a specific test file again.…One way that I recommend writing test is to…use the help of our node package manager.…
To demonstrate that I'll go to the project…and look at the package.json file.…And in this file there is a script section…and you see I already have defined multiple scripts here.…
- The test pyramid
- Unit, integration, and UI tests
- Creating an automation strategy
- Choosing test tools
- Deciding what to automation
- Identifying the risks and cost of automation
- Implementing test automation
- Using continuous integration
- Measuring code coverage
Skill Level Beginner
Value of automation1m 24s
1. Test Types
2. How to Approach Automation
3. Testing Tools
4. Decide What to Automate
5. Adopt Test Automation
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.