bahmutov / focha

Mocha wrapper that runs previously failed tests first
8 stars 1 forks source link

Load failed tests from file and set run order #1

Closed bahmutov closed 7 years ago

bahmutov commented 7 years ago

From the saved file

[
  {
    "name": "D",
    "location": [
      "",
      "outer",
      "inner"
    ]
  }
]

need to set the test D in suite root - outer - inner to run first. Hmm, do we order the suite inner to run first and test D to run there? Or do we skip every non-failing test and run all tests again after that? We could do that - split Mocha runs into two:

  1. first run just the failing tests (if any)
  2. if all pass run all tests. Otherwise just stop, because failing tests still failed.
bahmutov commented 7 years ago

done