Repository navigation
Releases
Releases · JMP-LLC/jsl-hamcrest
v2.0.0
Added
ut localizedto enable localizing content using an associative array and language codes.ut mock function,ut expect call, andut verify mockfor testing callbacks- Extended reporting API to support skipped tests and assertions.
Use theut test case<<Skip Ifmessage for skipping entire tests.
Use theut skipmatcher for skipping assertions.
Changed
- Convenience
ut throwshelper functions now useut localizeto assert using the current languages error message. UtJunitXMLReporterreports file and classname attributes for testcases and treats throws differently from failures.- The
ut skipmatcher now issues askiprather than asuccess. Theut skip succeedingmatcher has the old behavior. - The
labelis now explicitly given to the reporter a four-element list rather than having to split onut concat test label sep.
These are{case name, test name, assertion label, assertion id}. Theut concat test labelfunction has been removed and
replaced by a combination ofut form test label,ut format test label, andut fwd test label. A quick rewrite of thelabel
argument in yourUtReportermessages likelabel = ut format test label(label)will get back to the old behavior. (#59)
Fixed
- Avoid potential collision with builtin functions in
UtSizeMatcher(#109, #111) UtWindowDispatchingReporternow uses a more reliable key which works for any box within a window (#118)- Added
ut parsedto the Scripting Index (#115) ut testdecorated assertions no longer report as anonymous functions (#119)
v1.2.0
Added
- Custom functions for matcher, assertion, test, and test case functions with examples in the Scripting Index and hover help (#58 #64).
- Development addin that can be linked to a repository for easy updating (#66)
ut valid xmlmatcher (#56)UtJunitXMLReporter(#56)UtCompositeReporternow available in base package (#90)
Changed
- JunitXMLReporter now reports failures per test case instead of per assertion (#87, #77).
UtFileAppendingReporterhas an optional argument to write successes
Fixed
- Fixed opening help on Mac and fallback to online help when local help not available (#70)
- Nested
ut tests now work with log benching (#63 #71). ut equal tono longer fails with an empty matrix (#72).ut approxnow properly shows actual value for matrices (#74).- Initializing the addin with an already configured
ut global reporterwill preserve that reporter (#83). ut expression matchesnow supports strings with children (#88)ut file appending reporterfactory function now works properly (#96).ut testnow saves and restores the current row number to better isolate tests (#97).
v1.1.0
Added
- Unit Tests for Hamcrest itself (#2)
UtInstanceOfMatcher(#1)- Allow for unregistering custom matchers (#19)
- Unit Tests for Addin Reporters (basic, #23)
Matchers/CustomandReporters/Customfolders for installation of user-defined classes (#24)- Allow user-defined assertions to be used with
ut test(#27) UtTypedMatchernow supportsScriptableas an allowable type (#42)ut enabledmatcher (#40 #42)ut assert valueto make assertions while evaluating at call site rather than in matcher (#46)
Changed
- Must use factory functions for reporters rather than
New Object(#3). - Test labels can now be anything (not just strings, #6)
- Embedded Log is now off by default (for GUI, #18)
- Reworded
ut all ofmismatch to be less confusing (#21) StreamingLogReporternow gives a better error message when expecting an expression (#22)ut global reporterwill no longer be overwritten ifCore.jslis included multiple times (#26)UtMessageMatchermismatch message has been improved (#42)UtMessageMatcherwill now always send a message if the object is scriptable instead of attempting to
detect messages that are allowed. If a message is not supported by an object, it will return missing. (#42)