{"record":{"id":"e2e5750c4d9ba717","repo":"swc-project/swc","slug":"no-test-found","errorCode":null,"errorMessage":"No test found","messagePattern":"No test found","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/testing_macros/src/fixture.rs","lineNumber":173,"sourceCode":"        let path_str = abs_path.to_string_lossy();\n        let f = quote!(\n            #[test]\n            #[inline(never)]\n            #[doc(hidden)]\n            #[allow(non_snake_case)]\n            #ignored_attr\n            fn #test_ident() {\n                eprintln!(\"Input: {}\", #path_str);\n\n                #callee(::std::path::PathBuf::from(#path_str));\n            }\n        );\n\n        test_fns.push(f);\n    }\n\n    if test_fns.is_empty() {\n        panic!(\"No test found\")\n    }\n\n    Ok(test_fns)\n}\n\n/// Returns whether a manifest-relative fixture path contains a hidden\n/// component.\nfn is_ignored_fixture(path: &Path) -> bool {\n    path.components().any(|component| match component {\n        Component::Normal(name) => name.to_string_lossy().starts_with('.'),\n        _ => false,\n    })\n}\n\nstruct InputParen {\n    input: Punctuated<LitStr, Token![,]>,\n}\n","sourceCodeStart":155,"sourceCodeEnd":191,"githubUrl":"https://github.com/swc-project/swc/blob/5176682b65416c6b5de6b47379ae1588ea3ecb3f/crates/testing_macros/src/fixture.rs#L155-L191","documentation":"Raised at the end of expand_from in swc_testing_macros (fixture.rs:173). The macro expands each discovered fixture file into a #[test] function; if the collection ends with zero test functions — because the fixture directory is empty, all entries were filtered out by exclude() patterns, or every path was skipped as hidden — this panic fires. It signals the attribute was applied but produced no tests, usually indicating a wrong directory path or an over-broad exclude regex.","triggerScenarios":"Thrown at crates/testing_macros/src/fixture.rs:173 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the directory passed to #[fixture] actually contains fixture files","Loosen or fix the exclude() regexes if they are filtering out every fixture","Print the scanned directory and the exclusion decisions before panicking to ease diagnosis"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5176682b65416c6b5de6b47379ae1588ea3ecb3f","analyzedAt":"2026-08-17T16:16:52.067Z","contentChangedAt":"2026-08-17T16:16:52.067Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}