Skip to content

Latest commit

 

History

History

cli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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