Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


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
AUG Leaders

Atlassian Community Events