diff options
author | Siri Hansen <[email protected]> | 2012-12-18 09:08:48 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2012-12-18 09:08:48 +0100 |
commit | 5b1e008c8a02d670e07d9eaccd80b28a22bdbc65 (patch) | |
tree | 28fe030920ffa60a758e964a0e97d8cd6da14cc2 /lib/common_test/doc/src/ct_hooks_chapter.xml | |
parent | e99fd8e388a043f28ff1aa53c3fd53f984201a64 (diff) | |
parent | c822f43f8ef220b5986d5f10dabc81a4c51f92ef (diff) | |
download | otp-5b1e008c8a02d670e07d9eaccd80b28a22bdbc65.tar.gz otp-5b1e008c8a02d670e07d9eaccd80b28a22bdbc65.tar.bz2 otp-5b1e008c8a02d670e07d9eaccd80b28a22bdbc65.zip |
Merge branch 'maint'
Conflicts:
lib/common_test/test/Makefile
Diffstat (limited to 'lib/common_test/doc/src/ct_hooks_chapter.xml')
-rw-r--r-- | lib/common_test/doc/src/ct_hooks_chapter.xml | 24 |
1 files changed, 19 insertions, 5 deletions
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) -> <row> <cell>cth_surefire</cell> <cell>no</cell> - <cell>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. + <cell><p>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 <c>path</c> option for this hook, e.g.</p> + <code>-ct_hooks cth_surefire [{path,"/tmp/report.xml"}]</code> - Surefire XML can forinstance be used by Jenkins to display test - results.</cell> + + <p>If the <c>url_base</c> option is set, an additional + attribute named <c>url</c> will be added to each + <c>testsuite</c> and <c>testcase</c> XML element. The value will + be a constructed from the <c>url_base</c> and a relative path + to the test suite or test case log respectively, e.g.</p> + + <code>-ct_hooks cth_surefire [{url_base,"http://myserver.com/"}]</code> + <p>will give a url attribute value similar to</p> + + <code>"http://myserver.com/[email protected]_11.19.39/x86_64-unknown-linux-gnu.my_test.logs/run.2012-12-12_11.19.39/suite.log.html"</code> + + <p>Surefire XML can for instance be used by Jenkins to display test + results.</p></cell> </row> </table> |