From the course: Test Automation Foundations

Unlock the full course today

Join today to access over 24,300 courses taught by industry experts.

Test results

Test results

- [Narrator] Once tests are written, the fun can really start. The whole idea about test 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 test 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 trial 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…

Contents