small updates
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
@@ -67,7 +67,10 @@ function registerPackageCommand(program: Command) {
|
||||
)
|
||||
.option('--count <count>', 'Number of requests to send')
|
||||
.option('--workers <workers>', 'Number of workers to use', '2')
|
||||
.option('--debug', 'Enable debug mode')
|
||||
.option(
|
||||
'--debug',
|
||||
`Enable debug mode, which will save cassettes to '.cassettes/{pluginId}.yml'`,
|
||||
)
|
||||
.option(
|
||||
'--exclude-checks <excludeChecks>',
|
||||
'Exclude checks from schemathesis run',
|
||||
|
||||
@@ -48,7 +48,7 @@ async function fuzz(opts: OptionValues) {
|
||||
if (opts.debug) {
|
||||
args.push(
|
||||
'--cassette-path',
|
||||
cliPaths.resolveTargetRoot(join('.cassettes', `${pluginId}`)),
|
||||
cliPaths.resolveTargetRoot(join('.cassettes', `${pluginId}.yml`)),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -75,13 +75,11 @@ async function fuzz(opts: OptionValues) {
|
||||
'run',
|
||||
'--checks',
|
||||
'all',
|
||||
'--data-generation-method',
|
||||
'all',
|
||||
...args,
|
||||
`${config.getString('backend.baseUrl')}/api/${pluginId}/openapi.json`,
|
||||
],
|
||||
{
|
||||
stdio: ['ignore', 'inherit', 'inherit'],
|
||||
stdio: ['ignore', 'inherit', 'ignore'],
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user