UnitTesting icon indicating copy to clipboard operation
UnitTesting copied to clipboard

Provide a way to cancel the test runner

Open rwols opened this issue 5 years ago • 1 comments

We're getting at around 200 tests now for LSP and we have a ton of yield lambda: condition() in setUp and tearDown methods. It can take a long time to wait for UnitTesting to finish if every one of those setUp methods fail to await the condition.

rwols avatar Jun 07 '20 13:06 rwols

I know that "failfast" exists for unittesting.json but it would be nice to keep that set at False and cancel the test runner via the command palette.

rwols avatar Jun 07 '20 13:06 rwols

All settings available in unittesting.json can also be passed to the commands and take precedence.

Adding the following to Default.sublime-commands would provide a test command, which always fails on first caught exception.

  {
    "caption": "UnitTesting: Test Current Package (Fail Fast)",
    "command": "unit_testing_current_package",
    "args": {"failfast": true},
  },

deathaxe avatar Mar 24 '24 11:03 deathaxe