Sign inSign up

levlaz/circleci-test-results-validator

By levlaz

•Updated almost 7 years ago

Validates Tests Results Against Junit XML Schema

Image
0

581

levlaz/circleci-test-results-validator repository overview

Docker Automated build

⁠CircleCI Test Results Validator

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.

⁠Usage

On the circle side, make sure you are uploading your test results as an artifact.

⁠Running with Docker

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
⁠Running Manually

Right now this is kind of a hodge podge of things.

  • Java
  • Node
  • Python

To install everything do this:

npm install
pip install -r requirements.txt
  1. Make sure you have a valid $CIRCLE_TOKEN exported as an environment variable.
  2. Run python validate.py $URL

Be sure to replace $URL with a URL to the build that you want to validate the test results for.

Tag summary

Content type

Image

Digest

Size

168.4 MB

Last updated

almost 7 years ago

docker pull levlaz/circleci-test-results-validator