Skip to content

v0.0.20 (alpha)

Pre-release
Pre-release
Compare
Choose a tag to compare
@dead-claudia dead-claudia released this 25 May 14:03
· 367 commits to master since this release

Changes since last release

  • Browser support is officially pulled until I get Sauce Labs, etc. hooked up.
  • The reporter API has undergone a complete overhaul to simplify creating them.
    • "start" - Marks the start of all running tests, and is the first event fired.
    • "enter" - Marks the start of all child tests within a single test block.
    • "leave" - Marks the end of all child tests within a single test block.
    • "pass" - Marks a passing test block with no children.
    • "fail" - Marks a failing test block with no children. The value is the error that was thrown, untouched.
    • "skip" - Marks a skipped test block with no children, via t.testSkip() or t.asyncSkip().
    • "end" - Marks the end of all running tests, and is the last event fired.
    • "error" - An internal/reporter error, provided for pretty-printing and the ability to close resources.
    • "extra" - Marks an extra call to done in an async test. The value is an object with the following properties:
      • count - how many times done has been called in total so far
      • value denotes the last value the callback was called with.
  • There exists two built-in reporters currently:
    • thallium/r/spec - Much like Mocha's spec reporter.
    • thallium/r/tap - A standard TAP producing reporter.
  • The programmatic API has been optimized a bit, so it will be faster and take less memory.
  • In the source itself, there is now a playground to help with reporter design in case you want to use it.
  • Several bug fixes.

See the docs for more details on the new additions.

Also, note that v0.0.19 was skipped over. It was meant to contain most of this, but there was a little breakage to resolve first, and I had already created the tag, so I decided it was easier to keep it.