- Create a
Dsl.Base
functor - which is used to createDsl.Sync
andDsl.Async
.
- Add support for focused and skipped examples
- Upgrade to bs-platform@5
- Remove compiler warnings caused by module aliases
- Support being used in projects compiled with inSource: true
- Fix source file glob
- Update
@stroiman/async
to 0.7
- Attempt to fix missing documentation, links, etc. on npmjs.com
- Changed dependency from
re-sync
to@stroiman/async
- Build against bs-platform 2.2.1
- cli now allows you to specify test files on the command line. (was hardcoded
to
lib/js/tests/*.js
before.
- Moved package from
re-respect
to@stroiman/respect
.
- No of passed, pending, and failed tests are written to the console after the test run.
- Breaking change: Renamed
TestContext
module toRespect_ctx
and made it available underRespect.Ctx
. A quick fix to get your code to compile is to add the this to your own modulesmodule TestContext = Respect.Ctx
.
- Added
Ctx.tryGet
- ReturnsNone
if no entry with the specified key exists in the context data.
- Added Respect.Ctx module as alias for TestContext
- TestContext.don function to help accept a done callback from setup functions
- Refactor: Test context is now represented by an object instead of a mutable record. But the TestContext module still has functions for operating on the actual context, so existing code should be compatible.
- Testcontext subject: The subject is a function that evaluates to an actual value when requested. The function receives the test context as input. You can assign the subject in a parent group, and modify the context in a child group.
- TextContext.map: Allows you to easily modify objects in the context.
- Breaking change: In order to get better error messages when match fails, the MatchFailure constructor now takes two args, the actual object, and the expected object of the failed matcher. This was in particular for testing async results.
- Breaking change: A match result can now only be asynchronous, but helper functions exists for matchers that evaluate synchronously. See the readme for guidance.
- Support for pending tests
- Removed dependency to 're-sync' npm package. This caused cyclic deps when building 're-sync'
- Only show failed tests in the console
- Added a 1 second timout for examples (not yet configurable)
- Bugfix: Test runniner wasn't working on case sensitive file system
- Added test metadata support
- Implemented nicer callback for tests
don ()
ordon err::"Failed" ()
- Created
Respect.Dsl.Async
module to have nice naming for async test suites. - Implemented async support in assertion framework.
- Rewrote runner engine to use continuations intenally to allow for async tests.
- Created an
it_a
construct to create async tests.
First version with a test runner that was able to execute tests