aboutsummaryrefslogtreecommitdiffstats
path: root/lib/eunit/include
AgeCommit message (Collapse)Author
2016-09-14Ensure asserts are enabled in eunit.hrlRichard Carlsson
When asserts were moved out to a separate header file, the automatic enabling of asserts when testing is enabled stopped working.
2016-05-20Replace suggested debugValAll/1 macro with debugVal/2Richard Carlsson
Also make the default depth for debugVal/1 possible to override by defining the macro EUNIT_DEBUG_VAL_DEPTH.
2016-04-23eunit: Add ?debugValAll macroYuki Ito
Add a macro which works much like ?debugVal, but doesn't truncate terms to print.
2015-12-03rm assertReceive, due to a leftover of a conflict resolutionZandra
c574bd33c39d91c487c3fcd819226ecfc46c13c8
2015-06-03Break out assert macros from eunit to stdlib assert.hrlRichard Carlsson
Several people have requested that the assert macros in EUnit should be moved out to a separate header file. This patch puts them in stdlib/include/assert.hrl, which gets included by the eunit.hrl file. Thus, nothing changes for eunit users, but the asserts can now also be included separately.
2015-05-28Revert "Add ?assertReceive(Guard, Timeout) macro to eunit"Zandra Hird
This reverts commit e56cf8d9846e51ae88fa72c8b0992d81da6fd7d5.
2015-05-18Add ?assertReceive(Guard, Timeout) macro to eunitSerge Aleynikov
A convenience macro used for testing message passing logic by allowing to fail if a message matching a `Guard` is not received in the mailbox of the current process.
2015-03-12OTP-11660: make eunit unicode safeVlad Dumitrescu
All output from eunit is unicode, including the surefire XML files.
2013-07-30Merge branch 'maint'Fredrik Gustafsson
2013-06-10Wrap eunit macros into begin ... end blocksAnthony Ramine
This makes typos such as missing commas between two assertions (e.g. ?assert(true) ?assert(true)) syntax errors instead of silently compiling and failing with a badfun error at runtime. This won't break any existing code as parenthesed expressions and blocks have the same precedence and none of these macros can be used as patterns.
2013-04-19Remove the "coding: utf-8" comment from all Erlang source filesHans Bolinder
2013-01-09eunit: Eliminate use of the package syntaxBjörn Gustavsson
2013-01-09Prepare OTP files for Unicode as default encodingHans Bolinder
2012-08-10minor cleanupRichard Carlsson
2011-09-25removed cvs keywords from filesRichard Carlsson
2011-08-30Updated to EUnit version 2.2.0Richard Carlsson
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'.
2009-11-20The R13B03 release.OTP_R13B03Erlang/OTP