deprecated Holdover from distilled-distilled package.
Final upload for
distilled-distilled. This is identical to version 1.0.2.
feat: move checklist reporter into separate module
- removes some browser-specific code since I'm now using Browserify for bundling
- removes reporter tests (in anticipation of eventually separating the reporters into separate modules)
- attaches constants to suite instances, so that reporters don't need to require Distilled.
Large update, including some breaking changes:
thenmethod, which is called whenever a suite (including its children) finish. This allows better test timing, opens the door for more extensions in the future, and most importantly allows the user to detect when an entire suite has finished. Previously, this could only be done by listening for events when the node process ended.
- Callback firing order is reversed to obey same rules as
then. Callbacks will fire off after
thencallls have all finished firing. This is to allow better control for extensions.
- Added an
assertmethod to aid with extensions. This behaves similarly to
testbut does not create a new test and is not chainable. Rather, it returns a promise that resolves or fails based on whether or not the assertion would fail if it was passed into a test. I have left undocumented for now, but this opens some rather exciting doors for extensions and custom assertion types.
- Rewrote the majority of tests to be easier for new developers to read and understand.
- Added a new default reporter (will likely be removed and reintroduced as a separate module in the future).
- Test timeout has been removed. I will reintroduce it as a separate module in the future.
A 1.0 release is obviously a rather large milestone.
The changes here are significant enough to warrant a version bump, and because they're breaking changes I need to update the major version. There's still a lot to do in the realm of browser compatibility, and not everything is documented as well as it needs to be. A 2.0 release should be fast-tracked to introduce better documentation, better browser support, and to clean up remaining questions like how constants should be exposed.
I was planning to wait longer before releasing this, but I'm sick of not being able to take advantage of the new timing features in my other projects. I also got a little bit shamed by some developer videos chastising Open Source projects for delaying too long before they released.
The API should be considered mostly stable, this is a true 1.0 release, although the ecosystem still has work to do before I'll start advertising it. There will likely be some breaking changes in future releases, but they will be smaller and easier to adapt to.
- fixes a bug testing on browsers that don't support console.clear
- cleans up source code to improve readability
- makes extending Distilled more intuitive (prototype will be consistent when calling test)
Fixed bug with exceptions thrown from recursively called functions in promises.
0.4.0 0.4.0 release
I feel somewhat confident that at this point the API is not going to change substantially, but I want to get some feedback on it first.