caching/vendor/knative.dev/pkg/testutils/junithelper
Matt Moore b404df2fb4 Auto-update dependencies (#186)
Produced via:
  `dep ensure -update knative.dev/test-infra knative.dev/pkg`
/assign n3wscott
/cc n3wscott
2020-01-21 07:48:05 -08:00
..
README.md Auto-update dependencies (#186) 2020-01-21 07:48:05 -08:00
main.go Auto-update dependencies (#186) 2020-01-21 07:48:05 -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"