1  EUnit Release Notes

1 EUnit Release Notes

This document describes the changes made to the EUnit application.

  • Minor internal improvements.

    Own Id: OTP-17884 Aux Id: GH-5617

  • In an eunit test, when a test case times out, include a stacktrace.

    Own Id: OTP-17613 Aux Id: PR-5185

  • The eunit_surefire report handler has been updated to automatically create the directories needed to store the surefire xml file.

    Own Id: OTP-17300 Aux Id: PR-4695

  • Fixed compiler warning.

    Own Id: OTP-16674

  • Let eunit_surefire skip invalid XML 1.0 characters.

    Own Id: OTP-15950 Aux Id: PR-2316, ERL-991

  • Add new macro ?capturedOutput for enabling to write test cases that verify data printed to standard out

    Own Id: OTP-16275 Aux Id: PR-2424

  • Add option to limit print depth of exceptions generated by eunit test suites.

    Own Id: OTP-16549 Aux Id: PR-2532

  • Backport of PR-2316: Strip control codes from eunit_surefire output to avoid generation of invalid xml

    Own Id: OTP-16380 Aux Id: ERL-991, PR-2316, PR-2487

  • Remove compiler warnings from eunit.

    Own Id: OTP-16313

  • Handle get_until request with explicit encoding in the implementation of the I/O protocol.

    Own Id: OTP-16000

  • Improved documentation.

    Own Id: OTP-15190

  • Calls to erlang:get_stacktrace() are removed.

    Own Id: OTP-14861

  • Removed all old unused files in the documentation.

    Own Id: OTP-14475 Aux Id: ERL-409, PR-1493

  • Tools are updated to show Unicode atoms correctly.

    Own Id: OTP-14464

  • The surefire reports from eunit will no longer have names with embedded double quotes.

    Own Id: OTP-14287

  • The address to the FSF in the license header has been updated.

    Own Id: OTP-14084

  • When asserts were moved out to a separate header file, the automatic enabling of asserts when testing is enabled stopped working.

    Own Id: OTP-13892

  • There is a new debugVal/2 that gives control over the truncation depth.

    Own Id: OTP-13612

  • Suppress Dialyzer warnings.

    Own Id: OTP-12862

  • Small documentation fixes

    Own Id: OTP-13017

  • Improve success message when 2 tests have passed

    Own Id: OTP-12952

  • The eunit application is now unicode safe.

    Own Id: OTP-11660

  • Make sure to install .hrl files when needed

    Own Id: OTP-12197

  • Make sure the clean rule for ssh, ssl, eunit and otp_mibs actually removes generated files.

    Own Id: OTP-12200

  • Minor refactoring.

    Own Id: OTP-12051

  • Application upgrade (appup) files are corrected for the following applications:

    asn1, common_test, compiler, crypto, debugger, dialyzer, edoc, eldap, erl_docgen, et, eunit, gs, hipe, inets, observer, odbc, os_mon, otp_mibs, parsetools, percept, public_key, reltool, runtime_tools, ssh, syntax_tools, test_server, tools, typer, webtool, wx, xmerl

    A new test utility for testing appup files is added to test_server. This is now used by most applications in OTP.

    (Thanks to Tobias Schlager)

    Own Id: OTP-11744

  • Fix I/O-protocol error handling in eunit. Thanks to Yuki Ito.

    Own Id: OTP-11373

  • Do not attempt to detect lists of printable characters in format. Thanks to Roberto Aloi.

    Own Id: OTP-11467

  • Fix silent make rule (Thanks to Anthony Ramine )

    Own Id: OTP-11516

  • Wrap eunit macros into begin ... end blocks. Thanks to Anthony Ramine.

    Own Id: OTP-11217

  • Where necessary a comment stating encoding has been added to Erlang files. The comment is meant to be removed in Erlang/OTP R17B when UTF-8 becomes the default encoding.

    Own Id: OTP-10630

  • New option 'no_tty' to silent the default tty report.

    Recognize the new stacktrace format introduced in R15, adding location information. (Thanks to Klas Johansson.)

    Improve layout of error messages, printing the stack trace before the error term.

    Heuristically detect and report bad return values from generators and instantiators. E.g., "ok" will not be interpreted as a module name, and a warning will be printed.

    New test representation {test,M,F} for completeness along with {generator,M,F}. Tuples {M,F} are deprecated.

    Use UTF-8 as encoding in Surefire output files. (Thanks to Lukas Larsson.)

    Own Id: OTP-10173

  • Erlang/OTP can now be built using parallel make if you limit the number of jobs, for instance using 'make -j6' or 'make -j10'. 'make -j' does not work at the moment because of some missing dependencies.

    Own Id: OTP-9451

  • 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

  • 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

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

    Own Id: OTP-8600

  • 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

  • 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

  • Miscellaneous updates.

    Own Id: OTP-8190

  • Miscellaneous updates.

    Own Id: OTP-8038

  • eunit was broken in R13B.

    Own Id: OTP-8018

  • 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

  • Corrected the documentation build.

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