This document covers TestOps Legacy version only.
Upload test reports from Mocha to Katalon TestOps
You can submit test results from the Mocha framework to Katalon TestOps.
You can download this sample project: Katalon TestOps JavaScript Reporters.
Follow these steps:
-
Open your Mocha file in a source-code editor, such as Visual Studio Code.
-
Open the package.json file.
-
Type the
npm install
command, then press Enter and wait for it to run.
While waiting, go to the Katalon TestOps website.
-
Sign in to Katalon TestOps and go to your Project.
-
Go to Configurations > Integrations.
The Integrations page appears.
-
Select Mocha in the dropdown list.
The Mocha page appears as below.
-
Copy the command line in the Install dependency section and paste it in the package.json file, then press Enter to run.
-
Create a new file with the name testops-config.json in your source-code editor.
-
Copy the content in the Configure TestOps plugin section in Katalon TestOps and paste it in the newly-created testops-config.json file in your source-code editor. Save this file.
-
Copy the command in the Run tests and upload reports section in Katalon TestOps and paste it in the testops-config.json file in your source-code editor, then press Enter to run.
You have uploaded reports.
-
Type the
npm test
command in the testops-config.json file in your source-code editor, and press Enter to run tests.
-
Go to Test Execution > Test Run Calendar.
Your uploaded Test Runs now display here.