Skip to content

Sol::writeReport ​

Member of Sol

idl
Sol.writeReport, file, $
  format = value

Writes the results of the last run to disk in a format that other tools, such as continuous integration systems, can read.

The json format has the overall passed flag, the summary counts, the code coverage percentage, and an item in files for each test file.

The junit format has a single test suite with a test case for each test file, which is considered failed if any test in the file failed and errored if the file could not be run.

Arguments ​

file ​

requiredinputtype=String

Fully-qualified path of the file to write.

Keywords ​

format ​

optionalinputtype=String

Either json or junit. If not specified, a file that ends in .xml is written as junit.

Licensed under MIT.