-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
Have you read the Contributing Guidelines on issues?
- I have 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
NothingCode 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
Reactions are currently unavailable