{"record":{"id":"9f8440ea87de3a66","repo":"n8n-io/n8n","slug":"unknown-test-case-args-testcase-available","errorCode":null,"errorMessage":"Unknown --test-case \"${args.testCase}\". Available: ${options}","messagePattern":"Unknown --test-case \"(.+?)\"\\. Available: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/@n8n/ai-workflow-builder.ee/evaluations/cli/index.ts","lineNumber":432,"sourceCode":"}\n\n/**\n * Load test cases from various sources.\n */\nfunction loadTestCases(args: ReturnType<typeof parseEvaluationArgs>): TestCase[] {\n\t// From CSV file\n\tif (args.promptsCsv) {\n\t\tconst testCases = loadTestCasesFromCsv(args.promptsCsv);\n\t\treturn args.maxExamples ? testCases.slice(0, args.maxExamples) : testCases;\n\t}\n\n\t// Predefined test case by id\n\tif (args.testCase) {\n\t\tconst defaultCases = loadDefaultTestCases();\n\t\tconst match = defaultCases.find((tc) => tc.id === args.testCase);\n\t\tif (!match) {\n\t\t\tconst options = getDefaultTestCaseIds().join(', ');\n\t\t\tthrow new Error(`Unknown --test-case \"${args.testCase}\". Available: ${options}`);\n\t\t}\n\n\t\tconst testCases: TestCase[] = [\n\t\t\t{\n\t\t\t\tprompt: match.prompt,\n\t\t\t\tid: match.id,\n\t\t\t\tcontext: { dos: args.dos, donts: args.donts },\n\t\t\t},\n\t\t];\n\n\t\treturn args.maxExamples ? testCases.slice(0, args.maxExamples) : testCases;\n\t}\n\n\t// Single prompt from CLI\n\tif (args.prompt) {\n\t\tconst testCases: TestCase[] = [\n\t\t\t{\n\t\t\t\tprompt: args.prompt,","sourceCodeStart":414,"sourceCodeEnd":450,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/ai-workflow-builder.ee/evaluations/cli/index.ts#L414-L450","documentation":"Output-validation error in evaluateWorkflowSimilarity. It fires when the uvx-launched Python similarity script finished but stdout is empty (after tolerating a non-zero exit code that still carried output), so there is no JSON to parse. The command line and any stderr are included to diagnose why the script printed nothing.","triggerScenarios":"Thrown at packages/@n8n/ai-workflow-builder.ee/evaluations/cli/index.ts:432 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of the listed predefined case ids, or pass --prompts-csv with a CSV instead.","Run with --help or inspect loadDefaultTestCases to see available ids.","Check for typos or outdated ids from older runs."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","contentChangedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}