Skip to content

[🐛 Bug]: v9: junit-reporter: Report is empty #13608

@torbenkohlmeier

Description

@torbenkohlmeier

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

9.0.9

Node.js Version

18.20.4

Mode

Standalone Mode

Which capabilities are you using?

No response

What happened?

After updating wdio including @wdio/junit-reporter to version 9, the generated report is empty:

<?xml version="1.0" encoding="UTF-8"?>
<testsuites tests="0" failures="0" errors="0" skipped="0"/>

I debugged this and found the reason. This method compares file paths of different types and cases. The first file path (specFileName) has the form file:///C:/[...], the second file path c:\[...]. After the conversion with fileURLToPath the paths are C:\[...] and c:\[...]. So the case of the drive letters does not match. Maybe on Windows the comparison should be done case-insensitive.

What is your expected behavior?

The report should not be empty.

How to reproduce the bug.

Run tests with junit-reporter on Windows.

Relevant log output

Nothing

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions