Skip to content

v0.4.0

Compare
Choose a tag to compare
@lukeed lukeed released this 03 Nov 23:47
· 54 commits to master since this release

Breaking

  • Remove immutability protection on context object (#39, #58): 3d3076d

    Previously, uvu only allowed suites' context to be modified within suite hooks. It would then pass in a read-only copy into the test handlers. The idea was to help ensure that the tests weren't unexpectedly relying on mutated context values between tests. However, in practice, this caused more problems than it prevented (#39, #58).

    So now, uvu passes around the original context object, allowing your hooks and tests to read/write/whatever to context. The warning has also been removed. You're in full control~!

Features

  • Write the current suite and test names into context object (#55): 28d12e9
    Allows your hooks and/or tests to be made aware of which suite+test combination was executed.
    Every context object will be given __suite__ and __test__ keys, which will be the respective name (string) values.
    Thank you @maraisr~!

Patches