When I click to the Tests button of my unit-tests job, it says:
0 test results uploaded
We detected the `store_test_results` key but there is an issue with the output.
We recommend checking to see that your output was saved correctly.
Config.yml has this job:
unit-tests:
executor: exectr
working_directory: ~/project/CT-StandardLibrary
steps:
- attach_workspace:
at: ~/
- run:
name: Build Tests
command: |
make tests
- run:
name: Run Tests
command: |
make runtests
- store_test_results:
path: ~/project/CT-StandardLibrary/cppunit-result
But the Upload step displays this:
Archiving the following test results
* /root/project/CT-StandardLibrary/cppunit-result/results/ArgumentVectorTest.xml
...
Total size uploaded: 3.0 KiB
And the contents of that particular file:
<?xml version="1.0" encoding='ISO-8859-1' standalone='yes' ?>
<testsuites tests="4" failures="0" time="0.000">
<testsuite name="ArgumentVectorTest" tests="4" failures="0" time="0.000">
<testcase classname="ArgumentVectorTest" file="ArgumentVectorTest.cpp" name="testBasics" time="0.000"></testcase>
<testcase classname="ArgumentVectorTest" file="ArgumentVectorTest.cpp" name="testForLoop" time="0.000"></testcase>
<testcase classname="ArgumentVectorTest" file="ArgumentVectorTest.cpp" name="testRangeLoop" time="0.000"></testcase>
<testcase classname="ArgumentVectorTest" file="ArgumentVectorTest.cpp" name="testRangeMethods" time="0.000"></testcase>
</testsuite>
</testsuites>
I’ve done the steps others have recommended. That is, my upload directory contains a subdirectory, and it’s in the subdirectory that my .xml files are. The testcase entries have classname, file, name, and time arguments. I’ve done basic XML validation – I know it’s good XML, although this could still be a schema thing.
It sure would be nice if the tool would tell us what’s actually wrong. Any other ideas?