{"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":"Error \"Unknown --test-case \"${args.testCase}\". Available: ${options}\" thrown in n8n-io/n8n.","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":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}