diff --git a/packages/repo-tools/src/commands/index.ts b/packages/repo-tools/src/commands/index.ts index 2c3d96a693..2589ea66d3 100644 --- a/packages/repo-tools/src/commands/index.ts +++ b/packages/repo-tools/src/commands/index.ts @@ -67,7 +67,10 @@ function registerPackageCommand(program: Command) { ) .option('--count ', 'Number of requests to send') .option('--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 ', 'Exclude checks from schemathesis run', diff --git a/packages/repo-tools/src/commands/package/schema/openapi/fuzz.ts b/packages/repo-tools/src/commands/package/schema/openapi/fuzz.ts index 50de8d27c5..c7970fbe70 100644 --- a/packages/repo-tools/src/commands/package/schema/openapi/fuzz.ts +++ b/packages/repo-tools/src/commands/package/schema/openapi/fuzz.ts @@ -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'], }, ); }