Running all tests in a suite before reporting #156

Open
wants to merge 5 commits into
from

Projects

None yet

2 participants

@evanworley

These changes run all the tests in a suite before reporting. Previous the first assertion failure was reported and expresso stopped running tests. I believe it is more useful to report all the failures in the test, to prevent the developer from executing the run/fix loop many times.

@evanworley

Added one more fix which addresses an unchecked call to test.callback() in assertResponse. The problem is that test.callback only exists if the Test has multiple tests, otherwise it's null. The bad call to callback generates an exception which results in the http server not being shut down properly.

@evanworley

Two more fixes

  1. Allowing nested assert.response by properly decrementing server.__pending
  2. Fixing test failure reporting wrong test when running in parallel
@ericlathrop

This would be a big help.

@evanworley

Hi Eric,

It appears that expresso is mostly dead. We switched to Mocha (http://visionmedia.github.com/mocha/) a few months ago, and I'd suggest you do the same. Unless you want to maintain expresso :/

  • Evan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment