- Minimum supported Haxe version is 4.1 now.
- added
Assert.similar()
(see the doc to that method) - changed various
Assert
methods to be type safe instead of acceptingDynamic
arguments - added
Assert.raisesCondition
- added UTEST_IGNORE_DEPENDS flag to ignore failed or missing dependencies (see README.md)
- added test case name filter to
Runner.addCases
- support @:ignore meta (old @Ignored meta is still supported too)
- support advanced minification for JS target
- provided defines.json to get UTest compilation flags descriptions with
haxe -lib utest --help-user-defines
(requires Haxe 4.3) - provided meta.json to get UTest metadata list with
haxe -lib utest --help-user-metas
(requires Haxe 4.3)
- Haxe 4.2.0 compatibility
- Diagnostics reporter to show clickable messages in VSCode (#106
- Better position reporting upon
async.done()
calls for branched async methods - Exit code for Adobe AIR application in PlainTextReport (#108
- improved failure messages for
haxe.io.Bytes
checks - don't run test classes if their dependencies were not run because of their own dependencies failures
- fixed error reporting upon inter-class dependency resolution failures
- added support for
@:depends(some.pack.AnotherTestCase)
to define dependencies among test cases
- fixed compatibility with Haxe 3.4 and 4.0 (#104
- added support for
@:depends(testName1, testName2)
to define test dependencies (#25
utest.Assert
methods return true on success and false on fail.
utest.Assert.is
is deprecated.Use utest.Assert.isOfType
instead.
- Fixed execution of
callback
parameter inUTest.run(cases, calback)
(#100 - Use
Std.isOfType
instead of deprecatedStd.is
when compiled with Haxe 4.1+
- Fixed compatibility with Haxe 3.4
- Get rid of deprecation messages about
untyped __js__
with Haxe 4.1.0 - Accept
UTEST_PRINT_TESTS
andUTEST_FAILURE_THROW
via env vars at compile time (#97)
- java: make
async.branch(a -> ...)
more stable for immediatea.done()
async.branch()
to create multiple branches of asynchronous tests (#94)UTEST_PATTERN
andRunner.globalPattern
also check test class name now (#93)-D UTEST_PRINT_TESTS
to print test names in the process of execution (#95)-D UTEST_FAILURE_THROW
to throw an unhandled exceptions on failed assertions instead of collecting them for a report (#84)- Added a compile-time error if a package passed to
runner.addCases(pack)
does not exist (#73) - Fixed compatibility with Haxe 3 (was broken since 1.9.6)
- Better failure messages for collections (#81)
- Fixed for as3 target (#78)
- Fixed test app shutdown before all tests are finished in some rare case on Java (see HaxeFoundation/haxe#8131)
- Fixed UTest trying to execute static method whose name starts with 'test' (#71)
- Fixed signature of UTest.run(), which led to variance problems when the array isn't declared directly against the call argument. (#70)
- Added
utest.Async.setTimeout(ms)
to change async test timeout from within the test code (#67) - Added
@:timeout(999)
support at class level to change default timeout for all tests in a class (#67)
- Fixed
ITest requires __initializeUtest__
error for test cases with macros
- Fixed compatibility with
-dce full
flag (#62)
- Introduced
utest.ITest
andutest.Test
. Test cases should implement or extend them. See README.md for details. - Implemented
.setupClass()
/.teardownClass()
to setup once before the first test in a test case and teardown once after the last one. - Added a deprecation notice for test cases which don't implement
utest.ITest
. - Use the compile-time environment variable or the compiler define "UTEST_PATTERN" to skip tests, which don't match its value.
- Add a failure to the result if no tests were executed.
- Fixed exit code value for
--interp
target.
- Avoid recursion while running synchronous tests (could deplete stack on big test suites)
- Fixed waiting for completion of asynchronous tests on php, neko, python, java, lua
- Check for phantomjs before nodejs on shutting down the tests (#55)
- Fixed "duplicated fixture" error caused by other utest bugs (#52)
- Fixed HtmlReporter exception if a script tag is added to a head tag (#54)
- Added
Runner.addCases(my.pack)
, which adds all test cases located inmy.pack
package. - Reverted async tests for Haxe < 3.4.0 (#39 (comment))
- Fix broken compilation for js target (Caused by
@Ignored
functionality inHtmlReport
).
- Fix exiting from tests in case TeamcityReport.
- Add functionality of ignoring tests withing
@Ignored
meta. - Force
Runner#globalPattern
overriding withingpattern
argument fromRunner#addCase
(https://github.com/fponticelli/utest/issues/42)
- Fix Assert.raises for unspecified exception types
- Add PlainTextReport#getTime implementation for C#
- Fix null pointer on clear
PlainTextReport.hx
reported. - Add Teamcity reporter (enables with flag
-Dteamcity
). - Enabled async tests for all platforms
- HL support fixed
- Compatibility with Lua target.
- Added async setup/teardown handling
- Add executing of java tests synchronously
- Add C++ pointers comparison
- Initial support for phantomjs.
- Added handlers to catch test start/complete.
- Assert.same supports an optional parameter to set float precision comparison.
- Added
globalPattern
to filter only the desired results. - Fixes.
- Fixed Assert.raises.
- Fixed issue with PHP.
- Minor fix for HTML output.
- Improved Java experience and simplified API.
- Message improvements and fixed recursion issue with Python.
- Minor message improvement.
- Added
Assert.pass()
(thanks Andy White) and other minor improvements.
- Added support for phantomjs
- Future proof IMap check.
- Fixed issues with Map/IMap in Assert.same()
- library is now Travis/travis-hx friendly
- added async tests to Java
- minor improvements
- Haxe3 release