- Adds
schemaVersion
tountestedProperties
inmatchArrayOfStructs
andcontainArrayOfStructs
custom assertions.
- Specific BDD APIs have been extracted from this release, now contained in separate packages following the naming convention
space:testing-{packageName}
- New chai assertions developed for use in Space BDD APIs to allow
for simple message-based testing using message buses.
matchArrayOfStructs
is used when wanting to test the two arrays match.containArrayOfStructs
is used when wanting to ensure the array contains the expected structs.
- Adds testing helper
isSubclassOf
.
- Declare
space:event-sourcing
andspace:flux
as weak dependencies.
- Updates to all latest space packages
- Removes depreciated module testing api (not needed -> use BDD APIs and integration tests instead)
Adds improved BDD style API for event-sourced applications.
Adds dependency on underscore to fix problems.
Fixes bug with BDD aggregate style when no commands are applied to the aggregate
Heavily improves the API for BDD aggregate testing.
Use .Expect
instead of .Then
for BDD style aggregate tests.
Introduces aggregate tests in nice BDD style like this:
TestAggregate(@list)
.Given([new TodoAdded sourceId: @id, todoId: '1', title: 'first' ])
.When(new AddTodo id: '2', title: 'second' )
.ThenFailWith(new TooManyItems(@maxItems, @title))
Adds to.extend
assertion for Coffeescript classes.
Updates munit package name to avoid console warnings
Adds toCreate
assertion for space modules which checks if
a module eagerly creates an instance of a singleton.
Initial release