diff --git a/action.yml b/action.yml index 01ec7460..dc2f7ebd 100644 --- a/action.yml +++ b/action.yml @@ -129,7 +129,7 @@ inputs: required: false default: 'true' resolve_ignore_classname: - description: 'Force ignore classname in resolveFileAndLine (Fixes nextest annotations)' + description: 'Force ignore test case classname from the xml report (This can help fix issues with some tools/languages)' required: false default: 'false' outputs: diff --git a/src/testParser.ts b/src/testParser.ts index 1ecdedd4..384fc8f8 100644 --- a/src/testParser.ts +++ b/src/testParser.ts @@ -541,7 +541,7 @@ async function parseTestCases( .replace(templateVar('TEST_NAME'), testcase._attributes.name) .replace(templateVar('CLASS_NAME'), className) } else if (pos.fileName !== testcase._attributes.name) { - if (resolveIgnoreClassname && testcase._attributes.classname) { + if (!resolveIgnoreClassname && testcase._attributes.classname) { title = `${testcase._attributes.classname}.${testcase._attributes.name}` } else { title = `${pos.fileName}.${testcase._attributes.name}`