So I saw xunit support in the documentation and tried it as it says.
This is my circle.yml:
override:
- npm run test_junit:
environment:
MOCHA_FILE: $CIRCLE_TEST_REPORTS/junit/test-results.xml```
Everything is fine and I see this in my artifacts:
<img src="//circleci-discourse.s3.amazonaws.com/original/2X/7/7d41b768f94a3ef8cd3e42798101551b35f09175.png" width="602" height="138">
So I have two questions:
1- Why there is `$CIRCLE_TEST_REPORTS` there instead of `junit` or `testreports`? Did I do something wrong?
2- Is it what should happened after running the reporter? It puts a xml file in `artifacts`?
Thought this might help myself and others to understand this feature.