UNPKG

japa-cli

Version:
25 lines (20 loc) 740 B
#!/usr/bin/env node 'use strict' /* * japa-cli * * (c) Harminder Virk <virk@adonisjs.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ const program = require('commander') const RunCommand = require('./src/RunCommand') program .version(require('./package.json').version) .option('-b, --bail', 'Exit early when a test fails') .option('-t, --timeout [value]', 'Define global timeout for all the tests') .option('-g, --grep [value]', 'Run only specific tests by grepping over test title') .option('--verbose', 'Print test files include and filtered when running tests') .parse(process.argv) new RunCommand(process.cwd(), program).run()