2008 2011 Ericsson AB, All Rights Reserved The contents of this file are subject to the Erlang Public License, Version 1.1, (the "License"); you may not use this file except in compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Ericsson AB. EUnit Release Notes otp_appnotes nil nil nil notes.xml

This document describes the changes made to the EUnit application.

Eunit 2.2.1
Fixed Bugs and Malfunctions

Generate separate surefire XMLs for each test suite

Previously the test cases of all test suites (=modules) were put in one and the same surefire report XML thereby breaking the principle of least astonishment and making post analysis harder. Assume the following layout:

src/x.erl src/y.erl test/x_tests.erl test/y_tests.erl

The results for both x_tests and y_tests were written to only one report grouped under either module x or y (seemingly randomly).

Now two reports, one for module x and one for y are generated. (Thanks to Klas Johansson)

Own Id: OTP-9465

Updated to EUnit version 2.2.0

New macros assertNotMatch(Guard, Expr), assertNotEqual(Unexpected, Expr), and assertNotException(Class, Term, Expr).

The debugMsg macro now also prints the pid of the current process.

When testing all modules in a directory, tests in Module_tests.erl are no longer executed twice.

The use of regexp internally has been replaced with re. (Thanks to Richard Carlsson)

Own Id: OTP-9505

Removed some never-matching clauses reported by dialyzer Updated author e-mails and homepages Removed cvs keywords from files Removed files that should not be checked in (Thanks to Richard Carlsson)

Own Id: OTP-9591

Eunit 2.1.7
Fixed Bugs and Malfunctions

Increase depth of error messages in Eunit Surefire reports

Currently, error messages in Eunit Surefire reports are shortened just like when written to a terminal. However, the space limitations that constrain terminal output do not apply here, so it's more useful to include more of the error message. The new depth of 100 should be enough for most cases, while protecting against runaway errors. (Thanks to Magnus Henoch)

Own Id: OTP-9220

Don't let eunit_surefire report back to eunit when stopping

When eunit is terminating, a stop message is sent to all listeners and eunit then waits for *one* result message but previously both eunit_tty and eunit_surefire sent a response on error. Don't send a result message from eunit_surefire; let eunit_tty take care of all result reporting, both positive and negative to avoid race conditions and inconsistencies. (Thanks to Klas Johansson)

Own Id: OTP-9269

Eunit 2.1.6
Fixed Bugs and Malfunctions

Fix format_man_pages so it handles all man sections and remove warnings/errors in various man pages.

Own Id: OTP-8600

Eunit 2.1.5
Improvements and New Features

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

Eunit 2.1.4
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

Eunit 2.1.3
Improvements and New Features

Miscellaneous updates.

Own Id: OTP-8190

Eunit 2.1.2
Improvements and New Features

Miscellanous updates.

Own Id: OTP-8038

Eunit 2.1.1
Fixed Bugs and Malfunctions

eunit was broken in R13B.

Own Id: OTP-8018

Eunit 2.1
Improvements and New Features

Mostly internal changes, in particular to the event protocol; fixes problems with timeouts that could cause eunit to hang, and makes it much easier to write new reporting back-ends.

New "surefire" report backend for Maven and Bamboo.

The test representation is no longer traversed twice (the first pass was for enumeration only). This eliminates some strange restrictions on how generators can be written, but it also means that reports cannot be quite as complete as before in the event of skipped tests.

Own Id: OTP-7964

EUnit 2.0.1
Improvements and New Features

Corrected the documentation build.

EUnit 2.0
Improvements and New Features

This is the first version of EUnit (for unit testing of Erlang modules) by Richard Carlsson released in OTP.