1 APPLICATION Release Notes
1.1 Test_Server 3.4.4
Fixed Bugs and Malfunctions
-
It was previously not possible to use timetrap value 'infinity' with ct:timetrap/1. This has been fixed.
Own Id: OTP-9159
-
A bug that made it impossible to cancel the previous timetrap when calling ct:timetrap/1 has been corrected.
Own Id: OTP-9233 Aux Id: OTP-9159
Improvements and New Features
-
When running tests with auto-compilation disabled, Common Test could only display the test suite source code on html format in the test case log if the source file was located in the same directory as the pre-compiled suite. This has been modified so that Common Test now tries to locate the source file by means of the test suite module info (Suite:module_info/1). As a result, a suite may now be compiled to a different output directory (e.g. $MYTEST/bin) than the source code directory (e.g. $MYTEST/src), without the source-code-to-html generation being affected.
Own Id: OTP-9138
-
It is now possible to return a tuple {fail,Reason} from init_per_testcase/2. The result is that the associated test case gets logged as failed without ever executing.
Own Id: OTP-9160 Aux Id: seq11502
-
Added DragonflyBSD check in test_server configure.
Own Id: OTP-9249
1.2 Test_Server 3.4.3
Fixed Bugs and Malfunctions
-
Updated the ts*.config files to contain information relevant to testing Erlang/OTP in an open source environment.
Own Id: OTP-9017
Improvements and New Features
-
Alpha release of Common Test Hooks (CTH). CTHs allow the users of common test to abtract out common behaviours from test suites in a much more elegant and flexible way than was possible before. Note that the addition of this feature may introduce minor changes in the undocumented behaviour of the interface inbetween common_test and test_server.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8851
1.3 Test_Server 3.4.2
Improvements and New Features
-
Miscellaneous updates
Own Id: OTP-8976
1.4 Test_Server 3.4.1
Fixed Bugs and Malfunctions
-
Returning {return_group_result,failed} from end_per_group in a group that is part of a sequence, did not cause the proceeding cases (or groups) to get skipped. This has been fixed.
Own Id: OTP-8753 Aux Id: seq11644
Improvements and New Features
-
Common Test has been updated to handle start options and test specification terms for test case groups (and test cases in groups). Also, an option named 'label', has been added that associates the test run with a name that Common Test prints in the overview HTML logs.
Own Id: OTP-8725 Aux Id: OTP-8727
-
It is now possible to skip all tests in a suite, or a group, by returning {fail,Reason} from the end_tc/5 framework function for init_per_suite, or init_per_group.
Own Id: OTP-8805 Aux Id: seq11664
1.5 Test_Server 3.4
Fixed Bugs and Malfunctions
-
Returning {fail,Reason} from the framework end_tc function was not handled properly by Test Server for all test suite functions.
Own Id: OTP-8492 Aux Id: seq11502
-
If the framework end_tc function would hang and get aborted by Test Server, there was no indication of failure in the logs. This has been fixed.
Own Id: OTP-8682 Aux Id: seq11504
Improvements and New Features
-
It is now possible for the Test Server framework end_tc function to change the status of the test case from ok or auto-skipped to failed by returning {fail,Reason}.
Own Id: OTP-8495 Aux Id: seq11502
-
Test Server will now call the end_per_testcase/2 function even if the test case has been terminated explicitly (with abort_current_testcase/1), or after a timetrap timeout. Under these circumstances the return value of end_per_testcase is completely ignored. Therefore the function will not be able to change the reason for test case termination by returning {fail,Reason}, nor will it be able to save data with {save_config,Data}.
Own Id: OTP-8500 Aux Id: seq11521
-
Previously, a repeat property of a test case group specified the number of times the group should be repeated after the main test run. I.e. {repeat,N} would case the group to execute 1+N times. To be consistent with the behaviour of the run_test repeat option, this has been changed. N now specifies the absolute number of executions instead.
Own Id: OTP-8689 Aux Id: seq11502
1.6 Test_Server 3.3.6
Fixed Bugs and Malfunctions
-
The Test Server parse transform did not handle bit string comprehensions. This has been fixed.
Own Id: OTP-8458 Aux Id: OTP-8311
Improvements and New Features
-
The tc_status value in the Config list for a test case that has failed because of a timetrap timeout, has changed from {tc_status,timeout} to {tc_status,timetrap_timeout}.
Own Id: OTP-8302
-
The documentation is now possible to build in an open source environment after a number of bugs are fixed and some features are added in the documentation build process.
- The arity calculation is updated.
- The module prefix used in the function names for bif's are removed in the generated links so the links will look like "http://www.erlang.org/doc/man/erlang.html#append_element-2" instead of "http://www.erlang.org/doc/man/erlang.html#erlang:append_element-2".
- Enhanced the menu positioning in the html documentation when a new page is loaded.
- A number of corrections in the generation of man pages (thanks to Sergei Golovan)
- The legal notice is taken from the xml book file so OTP's build process can be used for non OTP applications.
Own Id: OTP-8343
1.7 Test_Server 3.3.5
Fixed Bugs and Malfunctions
-
If the init_per_testcase/2 function fails, the test case now gets marked and counted as auto skipped, not user skipped (which would previously happen).
Own Id: OTP-8289
Improvements and New Features
-
The documentation is now built with open source tools (xsltproc and fop) that exists on most platforms. One visible change is that the frames are removed.
Own Id: OTP-8201
-
It is now possible to fail a test case from the end_per_testcase/2 function, by returning {fail,Reason}.
Own Id: OTP-8284
-
It is now possible to fail a test case by having the end_tc/3 framework function return {fail,Reason} for the test case.
Own Id: OTP-8285
-
The test_server framework API (e.g. the end_tc/3 function) has been modified. See the test_server_ctrl documentation for details.
Own Id: OTP-8286 Aux Id: OTP-8285, OTP-8287
1.8 Test_Server 3.3.4
Fixed Bugs and Malfunctions
-
When running a suite starting with a test case group, Test Server crashed if init_per_suite/1 exited or returned skip. This has been fixed.
Own Id: OTP-8105 Aux Id: OTP-8089
Improvements and New Features
-
Various updates and fixes in Common Test and Test Server.
Own Id: OTP-8045 Aux Id: OTP-8089,OTP-8105,OTP-8163
-
Errors in coverage data collection and analysis were difficult to detect. The logging has been improved so that more information about e.g. imported and missing modules is printed to the html log files.
Own Id: OTP-8163 Aux Id: seq11374
-
The Common Test HTML overview pages have been improved. It is now possible to see if a test case has been skipped explicitly or because a configuration function has failed. Also, the history page (all_runs.html) now has scrolling text displaying the test names. The old format (showing names as a truncated string) can still be generated by means of the flag/option 'basic_html'.
Own Id: OTP-8177
1.9 Test_Server 3.3.2
Improvements and New Features
-
Various corrections and improvements of Common Test and Test Server.
Own Id: OTP-7981
1.10 Test_Server 3.3.1
Improvements and New Features
-
Minor updates and corrections.
Own Id: OTP-7897
1.11 Test_Server 3.3
Improvements and New Features
-
The conf case in Test Server has been extended with properties that make it possible to execute test cases in parallel, in sequence and in shuffled order. It is now also possible to repeat test cases according to different criterias. The properties can be combined, making it possible to e.g. repeat a conf case a certain number of times and execute the test cases in different (random) order every time. The properties are specified in a list in the conf case definition: {conf, Properties, InitCase, TestCases, EndCase}. The available properties are: parallel, sequence, shuffle, repeat, repeat_until_all_ok, repeat_until_any_ok, repeat_until_any_fail, repeat_until_all_fail.
Own Id: OTP-7511 Aux Id: OTP-7839
-
The test server starts Cover on nodes of the same version as the test server itself only.
Own Id: OTP-7699
-
The Erlang mode for Emacs has been updated with new and modified skeletons for Common Test and TS. Syntax for test case groups in Common Test (and conf cases with properties in TS) has been added and a new minimal Common Test suite skeleton has been introduced.
Own Id: OTP-7856
1.12 Test_Server 3.2.4.1
Fixed Bugs and Malfunctions
-
The step functionality in Common Test (based on interaction with Debugger) was broken. This has been fixed, and some new step features have also been added. Please see the Common Test User's Guide for details.
Own Id: OTP-7800 Aux Id: seq11106
1.13 Test_Server 3.2.4
Improvements and New Features
-
Miscellaneous updates.
Own Id: OTP-7527
1.14 Test_Server 3.2.3
Fixed Bugs and Malfunctions
-
When a testcase terminated due to a timetrap, io sent to the group leader from framework:end_tc/3 (using ct:pal/2/3 or ct:log/2/3) would cause deadlock. This has been fixed.
Own Id: OTP-7447 Aux Id: seq11010
Improvements and New Features
-
Various updates and improvements, plus some minor bug fixes, have been implemented in Common Test and Test Server.
Own Id: OTP-7112
-
It is now possible, by means of the new function ct:abort_current_testcase/1 or test_server_ctrl:abort_current_testcase/1, to abort the currently executing test case.
Own Id: OTP-7518 Aux Id: OTP-7112
1.15 Test_Server 3.2.2
Improvements and New Features
-
erlang:system_info/1 now accepts the logical_processors, and debug_compiled arguments. For more info see the, erlang(3) documentation.
The scale factor returned by test_server:timetrap_scale_factor/0 is now also effected if the emulator uses a larger amount of scheduler threads than the amount of logical processors on the system.
Own Id: OTP-7175
1.16 Test_Server 3.2.1
Improvements and New Features
-
When init_per_suite or end_per_suite terminated due to runtime failure, test_server failed to format the line number information properly and crashed. This error has now been fixed.
Own Id: OTP-7091
1.17 Test_Server 3.2.0
Improvements and New Features
-
Test Server is a portable test server for automated application testing. The server can run test suites on local or remote targets and log progress and results to HTML pages. The main purpose of Test Server is to act as engine inside customized test tools. A callback interface for such framework applications is provided.
Own Id: OTP-6989