From 987b281e597f615f07d7ac70f2a57cc42e36454f Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Wed, 12 Dec 2012 12:31:12 +0100 Subject: [common_test] Add documentation of new url_base option to cth_surefire --- lib/common_test/doc/src/ct_hooks_chapter.xml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'lib/common_test') diff --git a/lib/common_test/doc/src/ct_hooks_chapter.xml b/lib/common_test/doc/src/ct_hooks_chapter.xml index 86237f5fc1..27d56fd47d 100644 --- a/lib/common_test/doc/src/ct_hooks_chapter.xml +++ b/lib/common_test/doc/src/ct_hooks_chapter.xml @@ -457,12 +457,26 @@ terminate(State) -> cth_surefire no - Captures all test results and outputs them as surefire XML into - a file. The file which is created is by default called junit_report.xml. - The name can be by setting the path option for this hook. e.g. +

Captures all test results and outputs them as surefire + XML into a file. The file which is created is by default + called junit_report.xml. The file name can be changed by + setting the path option for this hook, e.g.

+ -ct_hooks cth_surefire [{path,"/tmp/report.xml"}] - Surefire XML can forinstance be used by Jenkins to display test - results.
+ +

If the url_base option is set, an additional + attribute named url will be added to each + testsuite and testcase XML element. The value will + be a constructed from the url_base and a relative path + to the test suite or test case log respectively, e.g.

+ + -ct_hooks cth_surefire [{url_base,"http://myserver.com/"}] +

will give a url attribute value similar to

+ + "http://myserver.com/ct_run.ct@myhost.2012-12-12_11.19.39/x86_64-unknown-linux-gnu.my_test.logs/run.2012-12-12_11.19.39/suite.log.html" + +

Surefire XML can for instance be used by Jenkins to display test + results.

-- cgit v1.2.3