Skip to content

1.4.0

Choose a tag to compare

@trowski trowski released this 04 May 15:40
99db640
  • Added setUpAsync() and tearDownAsync() to AsyncTestCase. These methods are executed before and after the test, similar to setUp() and tearDown().
    • Similar to the test case, these methods are executed using Amp\call(), so they may be a regular function, return a promise, or return a generator to be run as a coroutine.
    • setUpAsync() is run after setUp() and must resolve before the test method is executed.
    • tearDownAsync() is run immediately after the test concludes (or times out) and must resolve before tearDown() is run.
  • If a test times out, the test error message now provides, if available, the line in the generator returned by the test method where the timeout was reached.