Skip to main content

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:

  1. Open your Mocha file in a source-code editor, such as Visual Studio Code.

    open mocha in vsc

  2. Open the package.json file.

    open json file

  3. Type the npm install command, then press Enter and wait for it to run.

    run command

    While waiting, go to the Katalon TestOps website.

  4. Sign in to Katalon TestOps and go to your Project.

  5. Go to Configurations > Integrations.

    The Integrations page appears.

  6. Select Mocha in the dropdown list.

    The Mocha page appears as below.

    mocha page 1

    mocha page 2

  7. Copy the command line in the Install dependency section and paste it in the package.json file, then press Enter to run.

    install dependency command

  8. Create a new file with the name testops-config.json in your source-code editor.

    create vsc file

  9. 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.

    configure testops in vsc

  10. 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.

  11. Type the npm test command in the testops-config.json file in your source-code editor, and press Enter to run tests.

    configure testops in vsc

  12. Go to Test Execution > Test Run Calendar.

    Your uploaded Test Runs now display here.

Was this page helpful?