@toa.io/cli 0.20.0-dev.3 → 0.20.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- package/readme.md +2 -1
- package/src/commands/replay.js +6 -0
- package/src/handlers/replay.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/cli",
|
|
3
|
-
"version": "0.20.0-dev.
|
|
3
|
+
"version": "0.20.0-dev.5",
|
|
4
4
|
"description": "Toa CLI",
|
|
5
5
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/toa-io/toa#readme",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"@toa.io/runtime": "*"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@toa.io/console": "0.20.0-dev.
|
|
26
|
-
"@toa.io/generic": "0.20.0-dev.
|
|
27
|
-
"@toa.io/kubernetes": "0.20.0-dev.
|
|
28
|
-
"@toa.io/norm": "0.20.0-dev.
|
|
29
|
-
"@toa.io/yaml": "0.20.0-dev.
|
|
25
|
+
"@toa.io/console": "0.20.0-dev.5",
|
|
26
|
+
"@toa.io/generic": "0.20.0-dev.5",
|
|
27
|
+
"@toa.io/kubernetes": "0.20.0-dev.5",
|
|
28
|
+
"@toa.io/norm": "0.20.0-dev.5",
|
|
29
|
+
"@toa.io/yaml": "0.20.0-dev.5",
|
|
30
30
|
"find-up": "5.0.0",
|
|
31
31
|
"yargs": "17.6.2"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "86fa43267cbf99d1b2743b6d1ff6c3fdac38f49a"
|
|
34
34
|
}
|
package/readme.md
CHANGED
|
@@ -43,8 +43,9 @@ format.
|
|
|
43
43
|
<dt><code>toa replay [paths...]</code></dt>
|
|
44
44
|
<dd>
|
|
45
45
|
<code>paths</code> Path(s) to component(s) or a context (default <code>.</code>).<br/>
|
|
46
|
-
<code>--integration</code> Replay integration tests only.<br/>
|
|
47
46
|
<code>--component <id></code> Replay samples for a specified component <code>id</code>.<br/>
|
|
47
|
+
<code>--integration</code> Replay integration tests only.<br/>
|
|
48
|
+
<code>--autonomous</code> Replay autonomous tests only.<br/>
|
|
48
49
|
<code>--operation <name></code> Replay samples for specified operation.<br/>
|
|
49
50
|
<code>--title <regexp></code> Regexp to match sample titles.<br/>
|
|
50
51
|
<code>--dock</code> Run in Docker. Applicable only for component samples.
|
package/src/commands/replay.js
CHANGED
|
@@ -21,6 +21,12 @@ const builder = (yargs) => {
|
|
|
21
21
|
group: 'Command options:',
|
|
22
22
|
describe: 'Replay samples for specified component'
|
|
23
23
|
})
|
|
24
|
+
.option('autonomous', {
|
|
25
|
+
alias: 'a',
|
|
26
|
+
type: 'boolean',
|
|
27
|
+
group: 'Command options:',
|
|
28
|
+
describe: 'Replay autonomous tests only'
|
|
29
|
+
})
|
|
24
30
|
.option('integration', {
|
|
25
31
|
alias: 'i',
|
|
26
32
|
type: 'boolean',
|
package/src/handlers/replay.js
CHANGED
|
@@ -7,7 +7,7 @@ const find = require('../util/find')
|
|
|
7
7
|
const docker = require('./docker')
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* @param {Record<string, string | boolean>} argv
|
|
10
|
+
* @param {Record<string, string | string[] | boolean>} argv
|
|
11
11
|
* @return {Promise<void>}
|
|
12
12
|
*/
|
|
13
13
|
async function replay (argv) {
|
|
@@ -21,6 +21,7 @@ async function replay (argv) {
|
|
|
21
21
|
/** @type {toa.samples.suite.Options} */
|
|
22
22
|
const options = {
|
|
23
23
|
component: argv.component,
|
|
24
|
+
autonomous: argv.autonomous,
|
|
24
25
|
integration: argv.integration,
|
|
25
26
|
operation: argv.operation,
|
|
26
27
|
title: argv.title,
|