Jasmine tests through bamboo?

3k views Asked by At

I would like to integrate the jasmine tests with bamboo, but I'm not sure is it possible. The best what I found so far is https://bitbucket.org/atlassian/bamboo-nodejs-plugin which support just mocha tests. I would like to know is there any way to change node-jasmine output to be compatible with bamboo.

Thanks

2

There are 2 answers

1
Grissom On

Resolved:

Using option --junitreport and than use that report in bamboo to show the results,

0
MADJAR On

This is 3 years too late, but hopefully it can help some other people aswell.

For Karma you can use karma-junit-reporter npm package.

install it and add this to your Karma config file

config.set({
    reporters: ['progress', 'junit'],
    ...

Then you can run your test and it will generate a JUnit xml file.

Use the JUNIT parser in bamboo and read this file. It should pick up your tests then.