Skip to content

Fails if XML file other than NUnit format is output to artifactsPath #285

@nowsprinting

Description

@nowsprinting

Bug description

Fails if XML file other than NUnit format is output to artifactsPath.

How to reproduce

Test outputs a file with a ".xml" extension other than the NUnit format.

Expected behavior

Ignore non-test result XML files.

Additional details

await Promise.all(
files.map(async filepath => {
if (!filepath.endsWith('.xml')) return;
core.info(`Processing file ${filepath}...`);
const fileData = await ResultsParser.parseResults(path.join(artifactsPath, filepath));
core.info(fileData.summary);
runs.push(fileData);
}),

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions