small updates

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
aramissennyeydd
2024-02-19 22:41:34 -05:00
parent 81ff9590c1
commit 7daee2af68
2 changed files with 6 additions and 5 deletions
+4 -1
View File
@@ -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'],
},
);
}