3

Im using Jest to run unit tests on my application.

Is there a way I can get it to generate any sort of report file? I would like to integrate the report with Bamboo.

jennas
  • 2,444
  • 2
  • 25
  • 31
  • Generally, you'd need something that will output in xUnit.xml format for this — [this sample project on Github](https://github.com/palcu/jest-example) does exactly that, but can't get it working for the latest version of Jest. – anotherdave Oct 29 '15 at 16:59

1 Answers1

2

install this

https://www.npmjs.com/package/jest-junit

add this on your jest.config.file

"reporters": [
        "default",
        ["jest-junit", { outputName: "junitreport.xml" }]
    ]

on bamboo use the junit parser, configure it to find file in this way

**/junitreport.xml

Andrea Bisello
  • 1,077
  • 10
  • 23