Skip to content

Releases: hulu/roca

@hulu/roca 0.10.0

30 Jul 23:03
Compare
Choose a tag to compare
@hulu/roca 0.10.0 Pre-release
Pre-release

Features

  • @hulu/roca now supports returning the results of multiple test suites from a single test file (#28) — thanks @elsassph!
  • Any mocks created with _brs_.mockFunction, _brs_.mockComponent, or _brs_.mockComopnentPartial are automatically reset between .test.brs files (#36) — nice work @lkipke!
  • Added m.addContext(ctx as object), which allows variables and functions to be stashed away for later use in suites and cases (#29) — great idea @elsassph!

Bug fixes

  • No longer prints test count !== plan messages when a test encounters an error (#31) — omgosh @lkipke you're my hero

@hulu/roca 0.9.0

07 Jul 19:04
Compare
Choose a tag to compare
@hulu/roca 0.9.0 Pre-release
Pre-release

Features

  • Adds support for -r/--require, which brings a file into scope for all tests. Useful for shared utility functions! (#26)

@hulu/roca 0.8.0

12 Jun 23:56
Compare
Choose a tag to compare
@hulu/roca 0.8.0 Pre-release
Pre-release

Features

Version 0.8.0 introduces a "deep equals" assertion, accessible via m.assert.deepEquals. It doesn't currently support Nodes or some of the more complicated BrightScript components (e.g. roDateTime, roDeviceInfo, etc.) but all primitives and their boxed types are supported!

@hulu/roca 0.7.0

08 Jun 16:55
Compare
Choose a tag to compare
@hulu/roca 0.7.0 Pre-release
Pre-release

Not a breaking change this time! Huzzah!

New Feature

Now entire test suites can be focused or excluded, just like in mocha or jasmine! Simply use m.fdescribe to focus on a suite, or m.xdescribe() to exclude a suite. (#24)

Bug Fix

Successful assertions used to overwrite failed assertions within the same test case. Now they don't, because that was pretty silly behavior. (#25)

@hulu/roca 0.6.0

21 Jan 18:12
Compare
Choose a tag to compare
@hulu/roca 0.6.0 Pre-release
Pre-release

There are no feature changes in v0.6.0, but there is a change to the dependency structure of roca.

⚠️ BREAKING-CHANGE ⚠️

Since brs updates at a much faster rate that @hulu/roca, it's handy to allow consumers to provide their own copy of the BrightScript runtime! peerDependencies is designed to support exactly that use-case.

Action Required

If you currently depend on @hulu/roca, please run npm install --save-dev brs (or just --save if roca isn't a devDependency for your package).

@hulu/roca 0.5.0

02 Jan 22:11
Compare
Choose a tag to compare
@hulu/roca 0.5.0 Pre-release
Pre-release

⚠️ BREAKING CHANGE ⚠️

[email protected] includes a breaking change to its interface, caused by a correction to the scoping rules in the upstream brs project. Please see #16 for more details, or this project's documentation for an example.

New Feature: Assertions!

@alimnios72 started building an assertion framework to make writing tests easier! The new interface is available on a "beta" support level, so don't be surprised if it changes a little bit more before it stabilizes 😄

Thanks a ton @alimnios72!

@hulu/roca 0.4.1

15 Oct 17:17
Compare
Choose a tag to compare
@hulu/roca 0.4.1 Pre-release
Pre-release

@alimnios72 fixed a bug that caused our TAP output to be invalid for suites that include several sub-suites, each of which include several test cases.

Thanks a ton, @alimnios72 !

@hulu/roca 0.4.0

14 Oct 21:27
Compare
Choose a tag to compare
@hulu/roca 0.4.0 Pre-release
Pre-release

The first actually-tagged release of roca! It now supports exclusion of tests across files via fit and it, and provides support for multiple TAP reporters (by default: "spec", the default reporter for Mocha).