-
Notifications
You must be signed in to change notification settings - Fork 1
/
meow.js
72 lines (67 loc) · 1.92 KB
/
meow.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
const configString = `
This is a cli program that helps you make bulk testing to
twilio's autopilot infraestructure. It uses a csv file fixtures
as input and returns a json report if needed.
Usage
$ ta-bulk-testing <options>
Options
--expand, -e Take the fixtures file and expand it.
This process relies on "intent-utterance-expander"
project.
--export, -x Export report to a given name.
Eg. --export report.json.
If you send 'export' without a filename,
it will output the report in output.json.
--fixtures, -f Import an specific fixture file. CSV Format
is mandatory.
--language, -l Language for the testing. Default: 'en-US'
--account_sid, -s Twilio's account SID, default will try to
lookup for it in ~/.twilio/config.json.
--auth_token, -t Twilio's authorization token, default will
try to lookup for it in ~/.twilio/config.json.
--assistant_sid, -a Twilio's specific assistant ID for this testing.
Examples
$ ta-bulk-test --expand --fixtures ./fixtures/en-US.csv --export
`;
const flags = {
booleanDefault: undefined,
flags: {
bot: {
type: 'string',
alias: 'b'
},
expand: {
type: 'boolean',
alias: 'e'
},
export: {
type: 'string',
alias: 'x'
},
fixtures: {
type: 'string',
alias: 'f',
default: false
},
language: {
type: 'string',
alias: 'l'
},
account_sid: {
type: 'string',
alias: 's'
},
auth_token: {
type: 'string',
alias: 't'
},
assistant_sid: {
type: 'string',
alias: 'a'
},
}
}
export default {
configString,
flags
}