Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 780 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 780 Bytes

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) {
      case 0:
        expect(res, 0);
        break;
      case 1:
        expect(res, 1);
        done();
        break;
    }
  });
}));

Features and bugs

Please file feature requests and bugs at the issue tracker.