Releases: htest-dev/htest
Releases · htest-dev/htest
v0.0.18
What's Changed
API changes
- Allow writing tests without
arg
orargs
by @DmitrySharabin and @LeaVerou in #57 - Add lifecycle hooks (
beforeAll
,beforeEach
,afterEach
, andafterAll
) to support setup and teardown by @DmitrySharabin and @LeaVerou in #65, #67, and #68 - Make
throws
,maxTime
, andmaxTimeAsync
inheritable by @DmitrySharabin in #79 - Add support (via
throws: false
) for tests that should pass with any result if they don't throw by @DmitrySharabin in #77 - Add support for generated expected values via
getExpect()
by @DmitrySharabin in #84
Improvements
- Better failure display: colored diffs, dimmed unmapped values, inline or vertical alignment of actual and expected values by @DmitrySharabin in #59
- Better CI integration by @DmitrySharabin in #60
- Tests which
map()
orcheck()
function errors are now considered as failed by @DmitrySharabin in #61
Bug fixes
- When tests run in the browser, console messages are no longer intercepted by @DmitrySharabin in #70
- Fix bugs with time-based and error-based tests by @DmitrySharabin in #82
- Don't mix up intercepted console messages between tests when running in Node by @DmitrySharabin in #85
HTML mode
hTest HTML now lives in its own repo and has its own website (by @DmitrySharabin in #90 and #91). It also got some noticeable improvements and bug fixes:
- Expose colored diffs to the HTML mode by @DmitrySharabin in #63
- Totals are now correctly updated on tests run by @DmitrySharabin in #66
- Better rendering of nested objects by @DmitrySharabin in #69
- Skipped tests are now correctly rendered and counted by @DmitrySharabin in #71
- Fixed test isolation and the navigation between individual tests by @DmitrySharabin in #72
- In case of an error, the error details will be rendered (by @DmitrySharabin in #73), and the error stack is logged to the console on click (by @DmitrySharabin in #81)
Website and API docs improvements
- Modernize the website styles + new logo by @DmitrySharabin in #87
- Add logo, favicon, and nav links to the API docs by @DmitrySharabin in #58 and #93
- Fix types by @DmitrySharabin in #89
Full Changelog: v0.0.17...v0.0.18