Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

What does the Mocha Parser need to detect the tests results?

I'm running the Mocha Parser Plugin. It complains that it can't find the tests. I run a task before I start the parser to confirm that I have the mocha.json file:

 

simple	03-Aug-2021 23:54:13	Starting task 'Check mocha.json' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.command'
command	03-Aug-2021 23:54:13	Beginning to execute external process for build 'cwv - develop - feature-composer - Build and test cwv #40 (CWVW-DEV0-JOB1-40)'\n ... running command line: \n/bin/sh -c cat mocha.json\n ... in: /mnt/extraspace/bamboo-data/xml-data/build-dir/CWVW-DEV0-JOB1/repos/cwv\n
build	03-Aug-2021 23:54:13	{
build	03-Aug-2021 23:54:13	  "stats": {
build	03-Aug-2021 23:54:13	    "suites": 1,
build	03-Aug-2021 23:54:13	    "tests": 24,
build	03-Aug-2021 23:54:13	    "passes": 24,

 

But the parser is still complaining. 

simple	03-Aug-2021 23:54:13	Starting task 'Mocha Test Parser' of type 'com.atlassian.bamboo.plugins.bamboo-nodejs-plugin:task.reporter.mocha'
simple	03-Aug-2021 23:54:13	Parsing test results under /mnt/extraspace/bamboo-data/xml-data/build-dir/CWVW-DEV0-JOB1...
simple	03-Aug-2021 23:54:13	Failing task since test cases were expected but none were found.

Any ideas?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

56 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you