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/doc') 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 From 3c05d3389f8b45e5b9f13a874de53ec521981a41 Mon Sep 17 00:00:00 2001 From: Erlang/OTP Date: Wed, 12 Dec 2012 17:24:24 +0100 Subject: Prepare release --- lib/common_test/doc/src/notes.xml | 50 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) (limited to 'lib/common_test/doc') diff --git a/lib/common_test/doc/src/notes.xml b/lib/common_test/doc/src/notes.xml index 7e33b71de1..8c3b13951d 100644 --- a/lib/common_test/doc/src/notes.xml +++ b/lib/common_test/doc/src/notes.xml @@ -32,6 +32,56 @@ notes.xml +
Common_Test 1.6.3.1 + +
Known Bugs and Problems + + +

+ The following corrections/changes are done in the + cth_surefire hook:

+

+ Earlier there would always be a + 'properties' element under the 'testsuites' element. This + would exist even if there were no 'property' element + inside it. This has been changed so if there are no + 'property' elements to display, then there will not be a + 'properties' element either. The XML file + will now (unless other is specified) be stored in the top + log directory. Earlier, the default directory would be + the current working directory for the erlang node, which + would mostly, but not always, be the top log directory. + The 'hostname' attribute in the + 'testsuite' element would earlier never have the correct + value. This has been corrected. The + 'errors' attribute in the 'testsuite' element would + earlier display the number of failed testcases. This has + been changed and will now always have the value 0, while + the 'failures' attribute will show the number of failed + testcases. A new attribute 'skipped' is + added to the 'testsuite' element. This will display the + number of skipped testcases. These would earlier be + included in the number of failed test cases. + The total number of tests displayed by the 'tests' + attribute in the 'testsuite' element would earlier + include init/end_per_suite and init/end_per_group. This + is no longer the case. The 'tests' attribute will now + only count "real" test cases. Earlier, + auto skipped test cases would have no value in the 'log' + attribute. This is now corrected. A new + attributes 'log' is added to the 'testsuite' element. + A new option named 'url_base' is added for + this hook. If this option is used, a new attribute named + 'url' will be added to the 'testcase' and 'testsuite' + elements.

+

+ Own Id: OTP-10589

+
+
+
+ +
+
Common_Test 1.6.3
Fixed Bugs and Malfunctions -- cgit v1.2.3