Releases: hulu/roca
@hulu/roca 0.10.0
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
@hulu/roca 0.9.0
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
Features
Version 0.8.0 introduces a "deep equals" assertion, accessible via m.assert.deepEquals
. It doesn't currently support Node
s 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
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
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
⚠️ 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
@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
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).