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

JUnit Parser - Failing task since test cases were expected but none were found.

Eric Bosch June 9, 2023

The JUnit Parser configuration looks like below. In one of the earlier steps I copied to xml file to the workspace folder (${bamboo.build.working.directory}).  

junit_parser_config.PNG

A dir of the workspace shows that the file was successfully copied.

workspace.PNG

The task ended with the following error:

junit_parser_result.PNG

The xml file (based on JUnit) I want to parse looks like:

<testsuites>
<testsuite tests="14" id="1" package="flow_control.calculate_release_rates.unit_integration_test.uit_adb_fc_crr.ProductFeatures" errors="0" failures="0" name="Product Features" time="10.281166" timestamp="2023-06-15T09:26:43" hostname="VI\SRV03847">
<properties/>
<testcase classname="flow_control.calculate_release_rates.unit_integration_test.uit_adb_fc_crr.ProductFeatures" name="ADB_FC_BothTsmZeroCapacity # [00], Both TSM no capacity" time=".247183"> </testcase>
<testcase classname="flow_control.calculate_release_rates.unit_integration_test.uit_adb_fc_crr.ProductFeatures" name="ADB_FC_OneLoopZeroRatesFit # [01], One loop zero rate, fitting rates" time=".058635"> </testcase>
<system-out/>
<system-err/>
</testsuite>
<testsuite tests="14" id="2" package="flow_control.calculate_release_rates.unit_integration_test.uit_adb_fc_crr" errors="0" failures="0" name="ADB_UIT_FlowControl_AUTO" time="15.278026" timestamp="2023-06-15T09:26:43" hostname="VI\SRV03847">
<properties/>
<system-out/>
<system-err/>
</testsuite>
</testsuites>

Why do I get this error? Is it not a compatible JUnit format for Bamboo?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events