Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
:rocket: - new feature
:beetle: - bugfix
:x: - deprecation


## 0.36.0
- :x: install script moved to separate module @qavajs/create
- :rocket: make run command optional

## 0.35.0
- :rocket: load support files programmatically

Expand Down
6 changes: 2 additions & 4 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ Cli for @qavajs framework.

`npm install @qavajs/cli`

Setup project

`npx qavajs install`

Run tests

`npx qavajs run --config <config> --profile <profile>`
or
`npx qavajs --config <config> --profile <profile>`

### Override memory values
In case if tests need to be run with updated memory value they can be passed via CLI (e.g run scenarios on some other url)
Expand Down
785 changes: 224 additions & 561 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"name": "@qavajs/cli",
"version": "0.35.0",
"version": "0.36.0",
"description": "cli for qavajs framework",
"scripts": {
"build": "tsc",
"test": "vitest --coverage run",
"test:e2e:esm": "node bin/qavajs.js run --config test-e2e/esm/config.js --qavaBoolean --qavaValue 42 --tags @one --tags @two",
"test:e2e:cjs": "node bin/qavajs.js run --config test-e2e/cjs/config.js --qavaBoolean --qavaValue 42 --tags @one --tags @two",
"test:e2e:ts": "node bin/qavajs.js run --config test-e2e/ts/config.ts --qavaBoolean --qavaValue 42 --tags @one --tags @two",
"test:e2e": "npm run test:e2e:cjs && npm run test:e2e:esm && npm run test:e2e:ts"
"test:e2e:esm:default": "node bin/qavajs.js run --config test-e2e/esm/config.js --qavaBoolean --qavaValue 42 --tags @one --tags @two",
"test:e2e:cjs:default": "node bin/qavajs.js run --config test-e2e/cjs/config.js --qavaBoolean --qavaValue 42 --tags @one --tags @two",
"test:e2e:ts:default": "node bin/qavajs.js --config test-e2e/ts/config.ts --qavaBoolean --qavaValue 42 --tags @one --tags @two",
"test:e2e": "npm run test:e2e:cjs && npm run test:e2e:esm && npm run test:e2e:ts && npm run test:e2e:cjs:default && npm run test:e2e:esm:default && npm run test:e2e:ts:default"
},
"authors": [
"Alexandr Galichenko",
Expand All @@ -26,9 +29,8 @@
"chalk": "^5.3.0",
"ejs": "^3.1.9",
"fs-extra": "^11.2.0",
"inquirer": "^9.2.15",
"yargs": "^17.7.2",
"yarn-install": "^1.0.0"
"inquirer": "^9.2.16",
"yargs": "^17.7.2"
},
"devDependencies": {
"@cucumber/cucumber": "^10.3.1",
Expand All @@ -37,13 +39,13 @@
"@types/ejs": "^3.1.5",
"@types/fs-extra": "^11.0.4",
"@types/inquirer": "^9.0.7",
"@types/node": "^20.11.20",
"@types/node": "^20.11.28",
"@types/yargs": "^17.0.32",
"@vitest/coverage-v8": "^1.3.1",
"@vitest/ui": "^1.3.1",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"chai": "^4.3.10",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"vitest": "^1.3.1"
"typescript": "^5.4.2",
"vitest": "^1.4.0"
}
}
17 changes: 0 additions & 17 deletions src/@types/yarn-install.d.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/cliOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ import yargs from 'yargs';

export function cliOptions(argv: string[]) {
return yargs(argv)
.command(
'install',
'init qavajs project and install dependencies'
)
.command(
'run',
'run qavajs tests'
Expand Down
40 changes: 0 additions & 40 deletions src/deps.ts

This file was deleted.

8 changes: 1 addition & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import install from './install';
import run from './run';
import { cliOptions } from './cliOptions';
const chalk = import('chalk').then(m => m.default);
Expand All @@ -8,12 +7,7 @@ const argv: any = cliOptions(process.argv.slice(2));
async function main() {
const { bold, cyan } = await chalk;
console.log(bold(cyan(`@qavajs (v${require('../package.json').version})`)));
if (!argv._[0]) console.warn('Specify command: install or run');
switch (argv._[0]) {
case 'install': return install();
case 'run': return run();
default: console.warn('Command is not supported');
}
return run();
}

main();
Expand Down
206 changes: 0 additions & 206 deletions src/install.ts

This file was deleted.

Loading