$CG_JUNIT_XML_LOCATION
environment variable. Students will then get a clear overview of all the tests that have been run, which ones failed, and the output that was produced in the case of failure.cg-check
cg-xunit
cg-quickcheck
cg-junit4
cg-junit5
cg-jest
cg-mocha
cg-moxunit
cg-nbgrader
cg-phpunit
cg-pytest
SCRIPT
for the unit test script you want to use from the list above.cg-SCRIPT compile
.compile
command that configures the compiler to be able to find the required libraries. The compile
command takes file names as arguments and compiles those files. Run the command cg-SCRIPT compile <file1> <file2> ...
to compile the student code and test classes.run
command.$CG_JUNIT_XML_LOCATION
and then unset it before running the tests. The testing framework is then configured to output its results at that location and the tests are executed. Run the command cg-SCRIPT run <file1> <file2> ...
to compile the student code and test classes.run
command of each script may differ between scripts. E.g. cg-junit5
is run via cg-junit5 run -- -c TestClass
.