@travetto/test
Advanced tools
Comparing version 0.0.54 to 0.0.55
@@ -13,4 +13,4 @@ #!/usr/bin/env node | ||
const { Runner } = require('../src/runner'); | ||
new Runner(process.argv).run().then(x => process.exit(0), e => process.exit(1)); | ||
new Runner(process.argv.slice(2)).run().then(x => process.exit(0), e => process.exit(1)); | ||
}); | ||
} |
@@ -30,3 +30,3 @@ { | ||
}, | ||
"version": "0.0.54" | ||
"version": "0.0.55" | ||
} |
@@ -104,3 +104,3 @@ import { LocalExecution, ChildExecution, serializeError, deserializeError } from '@travetto/exec'; | ||
try { | ||
await new Runner(['-f', 'exec', '-m', 'single', '--', data.file, data.class, data.method]).run(); | ||
await new Runner(['-f', 'exec', '-m', 'single', data.file, data.class, data.method]).run(); | ||
worker.send(Events.RUN_COMPLETE); | ||
@@ -107,0 +107,0 @@ } catch (e) { |
@@ -16,7 +16,5 @@ import * as minimist from 'minimist'; | ||
_: string[]; | ||
'--': string[]; | ||
} | ||
const RunnerOptions = { | ||
'--': true, | ||
const RUNNER_OPTIONS = { | ||
default: { | ||
@@ -40,3 +38,3 @@ format: 'tap', | ||
constructor(args: string[] = process.argv) { | ||
this.state = minimist(args, RunnerOptions) as any as State; | ||
this.state = minimist(args, RUNNER_OPTIONS) as any as State; | ||
} | ||
@@ -90,3 +88,3 @@ | ||
async getFiles() { | ||
const globs = this.state['--'].length ? this.state['--'] : this.state._.slice(2); // strip off node and worker name | ||
const globs = this.state._; // strip off node and worker name | ||
let files = await ExecuteUtil.getTests(globs.map(x => new RegExp(x))); | ||
@@ -93,0 +91,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49344
1391