Upload test reports from Jest to Katalon TestOps
You can submit test results from the Jest framework to Katalon TestOps.
You can download this sample project: Katalon TestOps JavaScript Reporters.
Follow these steps:
-
Open your Jest 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 Jest in the dropdown list.
The Jest 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 two new files: testops-config.json and jest.config.js 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. Save this file.
-
Copy the command in the Add Report section in Katalon TestOps and paste it in the jest.config.js file. Save this file.
-
Type the
npx jest
command and press Enter to run.
You have uploaded tests to Katalon TestOps via Jest.
-
Go to Test Execution > Test Run Calendar.
Your uploaded Test Runs now display here.