Repository navigation
Test_runner: --experimental-test-coverage generates partial file names #51299
Description
Activity
- addedtest_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
on Dec 28, 2023 - addedgood first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.
on Jan 2, 2024 if anyone is intrested in tackling this issue, the width of the columns is calculated here:
node/lib/internal/test_runner/utils.js
Lines 357 to 362 in 477d6d7
const minFilePad = MathMin(8, filePadLength); filePadLength -= MathFloor(columnsExtras * 0.2); filePadLength = MathMax(filePadLength, minFilePad); // Get rest of available space, subtracting margins uncoveredLinesPadLength = MathMax(availableWidth - columnsWidth - (filePadLength + 2) - 2, 1); Hi @fawazahmed0 @MoLow - can you please assign this to me, I am interested in this issue. Thank you!
@ArchitGajjar seems like #51351 is already open, anyway, we don't assign issues to people.
- linked a pull request that will close this issuedisplay of test_runner table #51351
on Jan 5, 2024 Is this issue solved #51299 @MoLow @fawazahmed0
Hello, I have run several tests on this issue and the problem occurs on my dad's windows 10 computer and my Ubuntu 22.04 PC.
However, it works correctly on my winodws 11 laptop.I am just starting to get into contributing to open-source, and I thought this would be a good first challenge for me.
If this issue is not solved #51351 @Medhansh404 @MoLow @fawazahmed0 then I would like to take a crack at it.
Thanks, John
- added a commit that references this issue
on Sep 18, 2024 - added a commit that references this issue
on Oct 4, 2024
Version
v21.5.0
Platform
Microsoft Windows NT 10.0.22621.0 x64
Subsystem
No response
What steps will reproduce the bug?
This issue only happens in windows; mac works fine.
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
No response
What do you see instead?
I see partial file names
Here is the coverage report generated in windows:
Here is my complete command:
Additional information
The issue happens if my test.js files contains
const {somefunc} = require('../mymodule')i.e importing module by relative path