1

I'm running Jest integration tests on Jenkins and I want to integrate them with TestRail in order to automatically put test results to TestRail. In this way I will know easily how many tests are passed/failed?

Does anyone tried that?

pensacola
  • 11
  • 4

3 Answers3

1

I guess you are looking for something like this one https://github.com/zeljkosimic95/Jest-2-Testrail . Although your question is too old but it might help someone else. This is not official plugin but it may help you.

Adding a suggestion here, we should choose the tool after analyzing all the requirements in your software testing services and product. Because there is no official plugin for this except this https://gitlab.com/craydent/jest-testrail (haven't tried). But you still can do this without plugin with this library/code https://github.com/zeljkosimic95/Jest-2-Testrail

Vishal
  • 121
  • 1
0

You can probably have a look at Agiletestware Pangolin solution which allows you to export results of your tests into TestRail automatically from popular CI systems.

In order to be able to upload test results, Pangolin requires you to create report in JUnit format which can be done by using https://github.com/jest-community/jest-junit

Disclaimer: I'm a developer of Agiletestware Pangolin

Sergi
  • 990
  • 5
  • 16
0

The approach we have found to work well on our CI/CD pipelines is to:

  • Use the Jest JUnit reporter to convert Jest test results into a JUnit XML results file.

  • Upload the XML results file to Testrail using the API, or even better, the Test Rail CLI, which is a Python package.

For help on using the CLI with Jenkins, look at the official docs.

Nabil_H
  • 381
  • 3
  • 6