Validates Tests Results Against Junit XML Schema
581
If you are uploading test results to CircleCI but they are not showing up in the dashboard, then the most common cause is that the xml file that you are uploading to the test results service is not valid Junit Style XML.
This utility can be used to easily validate that the test results that you are uploading to CircleCI are valid Junit XML.
On the circle side, make sure you are uploading your test results as an artifact.
The simplest way to to use this tool is to use the pre-built docker container.
docker run -e "CIRCLE_TOKEN=$YOUR_CIRCLECI_API_TOKEN" -e "URL=$YOUR_BUILD_URL" levlaz/circleci-test-results-valdiator
Right now this is kind of a hodge podge of things.
To install everything do this:
npm install
pip install -r requirements.txt
$CIRCLE_TOKEN exported as an environment variable.python validate.py $URLBe sure to replace $URL with a URL to the build that you want to validate the test results for.
Content type
Image
Digest
Size
168.4 MB
Last updated
almost 7 years ago
docker pull levlaz/circleci-test-results-validator