pkg/testutils/junithelper
Matt Moore 96d3b8c24c Format markdown (#997)
Produced via:
  `prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github)`
/assign n3wscott
/cc n3wscott
2020-01-20 10:00:06 -08:00
..
README.md Format markdown (#997) 2020-01-20 10:00:06 -08:00
main.go Add a junithelper for creating a junit result from command (#926) 2020-01-17 12:57:03 -08:00

README.md

junithelper

junithelper is a tool for creating a simple junit test result, which is used for creating a single junit result file with a single test

Usage

This tool can be invoked from command line with following parameters:

  • --suite: name of suite
  • --name: name of test
  • --err-msg: (optional) error message, by default it's empty, means test passed
  • --dest: (optional) file path for result to be written to, default junit_result.xml

Example

go run junithelper --suite foo --name TestBar --err-msg "Failed Randomly" --dest
"/tmp/junit_important_suite.xml"