Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.02 KB

readme.md

File metadata and controls

48 lines (36 loc) · 1.02 KB

bespin cli

The CLI for the bespin test framework.

Entry Point

src/commands/bespin.ts

Usage

$ bespin

Filtering Tests

$ bespin --testFileFilter="**/example/path/specific.test.js"
$ bespin --testNameFilter="test name substring"

Configuration

// bespin.config.js
const { Config } = require("@testingrequired/bespin-core");
const {
  GlobTestFileLocator,
} = require("@testingrequired/bespin-glob-test-file-locator");
const {
  SpecTestFileParse,
} = require("@testingrequired/bespin-spec-test-file-parser");
const { ParallelRunner } = require("@testingrequired/bespin-parallel-runner");
const { JUnitReporter } = require("@testingrequired/bespin-junit-reporter");

module.exports = new Config(__filename)
  .withLocator(new GlobTestFileLocator("**/*.test.js"))
  .withParser(new SpecTestFileParse())
  .withRunner(new ParallelRunner(__filename, 10))
  .withReporter(new JUnitReporter("./junit.xml"));
$ bespin -c bespin.config.js