Skip to content

Latest commit

 

History

History
178 lines (135 loc) · 7.26 KB

CHANGELOG.md

File metadata and controls

178 lines (135 loc) · 7.26 KB

v2.0.0

  • 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 accepting Dynamic 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)

v1.13.2

  • 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

v1.13.1

  • 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

v1.13.0

  • added support for @:depends(some.pack.AnotherTestCase) to define dependencies among test cases

v1.12.1

  • fixed compatibility with Haxe 3.4 and 4.0 (#104

v1.12.0

  • added support for @:depends(testName1, testName2) to define test dependencies (#25

v1.11.0

  • utest.Assert methods return true on success and false on fail.

v1.10.5

  • utest.Assert.is is deprecated. Use utest.Assert.isOfType instead.

v1.10.4

  • Fixed execution of callback parameter in UTest.run(cases, calback) (#100
  • Use Std.isOfType instead of deprecated Std.is when compiled with Haxe 4.1+

v1.10.3

  • Fixed compatibility with Haxe 3.4

v1.10.2

  • Get rid of deprecation messages about untyped __js__ with Haxe 4.1.0
  • Accept UTEST_PRINT_TESTS and UTEST_FAILURE_THROW via env vars at compile time (#97)

v.1.10.1

  • java: make async.branch(a -> ...) more stable for immediate a.done()

v.1.10.0

  • async.branch() to create multiple branches of asynchronous tests (#94)
  • UTEST_PATTERN and Runner.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)

v.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)

v.1.9.5

  • Fixed UTest trying to execute static method whose name starts with 'test' (#71)

v.1.9.4

  • Fixed signature of UTest.run(), which led to variance problems when the array isn't declared directly against the call argument. (#70)

v.1.9.3

  • 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)

v.1.9.2

  • Fixed ITest requires __initializeUtest__ error for test cases with macros

v.1.9.1

  • Fixed compatibility with -dce full flag (#62)

v.1.9.0

  • Introduced utest.ITest and utest.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.

v.1.8.4

  • Fixed exit code value for --interp target.

v.1.8.3

  • Avoid recursion while running synchronous tests (could deplete stack on big test suites)

v.1.8.2

  • Fixed waiting for completion of asynchronous tests on php, neko, python, java, lua
  • Check for phantomjs before nodejs on shutting down the tests (#55)

v.1.8.1

  • Fixed "duplicated fixture" error caused by other utest bugs (#52)
  • Fixed HtmlReporter exception if a script tag is added to a head tag (#54)

v1.8.0

  • Added Runner.addCases(my.pack), which adds all test cases located in my.pack package.
  • Reverted async tests for Haxe < 3.4.0 (#39 (comment))

v1.7.2

  • Fix broken compilation for js target (Caused by @Ignored functionality in HtmlReport).

v1.7.1

  • Fix exiting from tests in case TeamcityReport.
  • Add functionality of ignoring tests withing @Ignored meta.
  • Force Runner#globalPattern overriding withing pattern argument from Runner#addCase (https://github.com/fponticelli/utest/issues/42)

v1.7.0

  • 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

v1.6.0

  • HL support fixed
  • Compatibility with Lua target.

v1.5.0

  • Added async setup/teardown handling
  • Add executing of java tests synchronously
  • Add C++ pointers comparison

v1.4.0

  • 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.

v1.3.10

  • Fixed Assert.raises.

v1.3.9

  • Fixed issue with PHP.

v1.3.8

  • Minor fix for HTML output.

v1.3.7

  • Improved Java experience and simplified API.

v1.3.6

  • Message improvements and fixed recursion issue with Python.

v1.3.5

  • Minor message improvement.

v1.3.4

  • Added Assert.pass() (thanks Andy White) and other minor improvements.

v1.3.3

  • Added support for phantomjs

v1.3.2

  • Future proof IMap check.

v1.3.1

  • Fixed issues with Map/IMap in Assert.same()

v1.3.0

  • library is now Travis/travis-hx friendly

v1.2.0

  • added async tests to Java

v1.1.3

  • minor improvements

v1.1.2

  • Haxe3 release