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

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

Joel Saltzman August 3, 2021

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

Atlassian Community Events