JUnit reporting with nose2

Nose2 for python has a JUnitXMLFormatter plugin which works fine, but the only way I can find to configure it is via our nose2.cfg file. However, you can only use strings in that file and no environment variables so I can’t get the XML file to export to the $CIRCLE_TEST_RESULTS directory.

Is there an alternative method or do I just need to use a mv command?

You can either use something like sed to pass in the ENVAR during the build, or use mv like you mentioned.