WebdriverIO - Mocha Installation



Mocha is a testing framework based on JavaScript which is built on Nodejs. It makes asynchronous test execution flow interesting and simple. Mocha tests can be run serially.

It is capable of producing accurate and customizable reports. Also, the uncaught exceptions can be easily tagged with the proper test cases. The details of Mocha can be found in the below link −

https://www.tutorialspoint.com/tesults/tesults_integrating_your_automated_tests.htm

To install Mocha packages in the NPM registry, the command is as follows −

npm install mocha

The following screen will appear on your computer −

Install Mocha

After the command has been executed successfully, the Mocha version installed gets reflected within the package.json file.

Advertisements