Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@emccorkle emccorkle released this 05 May 23:40
· 21 commits to master since this release
2ae5fba

Added

  • ut localized to enable localizing content using an associative array and language codes.
  • ut mock function, ut expect call, and ut verify mock for testing callbacks
  • Extended reporting API to support skipped tests and assertions.
    Use the ut test case <<Skip If message for skipping entire tests.
    Use the ut skip matcher for skipping assertions.

Changed

  • Convenience ut throws helper functions now use ut localize to assert using the current languages error message.
  • UtJunitXMLReporter reports file and classname attributes for testcases and treats throws differently from failures.
  • The ut skip matcher now issues a skip rather than a success. The ut skip succeeding matcher has the old behavior.
  • The label is now explicitly given to the reporter a four-element list rather than having to split on ut concat test label sep.
    These are {case name, test name, assertion label, assertion id}. The ut concat test label function has been removed and
    replaced by a combination of ut form test label, ut format test label, and ut fwd test label. A quick rewrite of the label
    argument in your UtReporter messages like label = ut format test label(label) will get back to the old behavior. (#59)

Fixed

  • Avoid potential collision with builtin functions in UtSizeMatcher (#109, #111)
  • UtWindowDispatchingReporter now uses a more reliable key which works for any box within a window (#118)
  • Added ut parsed to the Scripting Index (#115)
  • ut test decorated assertions no longer report as anonymous functions (#119)