Skip to content

Repository files navigation

A library that allows for completely async tests, where the test does not end, until the finisher is called.

The body should be the same as for a normal test. That is, the same as you would put in for body in test("description", body).

Usage

The following example demonstrates a test that only resolves after the second emission from obs:

test("Async test", async((DoneFn done) {
Observable obs =Observable.fromIterable([1, 2);
obs.listen((int res) {
switch(res) {
case0:expect(res, 0);
break;
case1:expect(res, 1);
done();
break;
}
});
}));

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

A library that allows for completely async tests, where the test does not end, until the finisher is called.

Resources

Stars

1 star

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages