Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Runner presets #63

Open
ShMcK opened this issue May 17, 2020 · 0 comments
Open

Test Runner presets #63

ShMcK opened this issue May 17, 2020 · 0 comments
Assignees

Comments

@ShMcK
Copy link
Member

ShMcK commented May 17, 2020

Simplify the test runner config setup based on the test runner.

Eg. Make a "mocha" test runner preset, rather than a recipe.

As an example:

{
 "testRunner": {
        "command": "./node_modules/.bin/mocha",
        "args": {
          "filter": "--grep",
          "tap": "--reporter=mocha-tap-reporter"
        }
}

Mocha requires:

  1. installed dependencies npm install mocha
  2. a reporter for TAP (currently from npm install mocha-tap-reporter)
  3. capture commands for filtering tests by a regex (--grep).
  4. package.json script to call "mocha"

All of this could be captured in a commit, and a testRunner config.

@ShMcK ShMcK self-assigned this May 17, 2020
@ShMcK ShMcK transferred this issue from coderoad/coderoad-vscode Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant