Commit 1daec9a
test_runner: avoid coverage report partial file names
Co-author: Medhansh404 <21ucs126@lnmiit.ac.in>
PR-URL: #54379
Fixes: #51299
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>1 parent c8b7a64 commit 1daec9aCopy full SHA for 1daec9a
File tree
Expand file treeCollapse file tree
19 files changed
+544
-156
lines changedOpen diff view settings
Filter options
- lib/internal/test_runner
- test
- fixtures/test-runner
- coverage-snap/a-very-long-long-long-sub-dir
- output
- parallel
Expand file treeCollapse file tree
19 files changed
+544
-156
lines changedOpen diff view settings
Collapse file
lib/internal/test_runner/utils.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/utils.js+118-37Lines changed: 118 additions & 37 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
4 | 5 | |
5 | 6 | |
| 7 | + |
6 | 8 | |
7 | 9 | |
8 | 10 | |
| ||
24 | 26 | |
25 | 27 | |
26 | 28 | |
27 | | - |
| 29 | + |
28 | 30 | |
29 | 31 | |
30 | 32 | |
| ||
409 | 411 | |
410 | 412 | |
411 | 413 | |
| 414 | + |
| 415 | + |
| 416 | + |
| 417 | + |
| 418 | + |
| 419 | + |
| 420 | + |
| 421 | + |
| 422 | + |
| 423 | + |
| 424 | + |
| 425 | + |
| 426 | + |
| 427 | + |
| 428 | + |
| 429 | + |
| 430 | + |
| 431 | + |
| 432 | + |
| 433 | + |
| 434 | + |
| 435 | + |
| 436 | + |
| 437 | + |
| 438 | + |
| 439 | + |
| 440 | + |
| 441 | + |
| 442 | + |
| 443 | + |
412 | 444 | |
413 | 445 | |
414 | 446 | |
| ||
418 | 450 | |
419 | 451 | |
420 | 452 | |
| 453 | + |
| 454 | + |
421 | 455 | |
422 | | - |
423 | | - |
424 | | - |
| 456 | + |
| 457 | + |
| 458 | + |
| 459 | + |
| 460 | + |
| 461 | + |
425 | 462 | |
| 463 | + |
| 464 | + |
| 465 | + |
426 | 466 | |
427 | 467 | |
428 | 468 | |
| ||
435 | 475 | |
436 | 476 | |
437 | 477 | |
438 | | - |
439 | 478 | |
440 | 479 | |
441 | 480 | |
442 | | - |
443 | | - |
444 | | - |
445 | | - |
446 | | - |
447 | | - |
| 481 | + |
448 | 482 | |
449 | | - |
450 | | - |
451 | 483 | |
452 | 484 | |
453 | 485 | |
454 | 486 | |
455 | 487 | |
456 | 488 | |
457 | | - |
458 | 489 | |
459 | 490 | |
460 | 491 | |
| ||
469 | 500 | |
470 | 501 | |
471 | 502 | |
472 | | - |
473 | | - |
474 | | - |
475 | | - |
476 | | - |
477 | | - |
| 503 | + |
| 504 | + |
| 505 | + |
| 506 | + |
| 507 | + |
| 508 | + |
478 | 509 | |
479 | | - |
480 | | - |
481 | | - |
482 | | - |
| 510 | + |
483 | 511 | |
484 | | - |
485 | | - |
486 | | - |
487 | | - |
488 | | - |
489 | | - |
490 | | - |
| 512 | + |
| 513 | + |
491 | 514 | |
492 | | - |
493 | | - |
494 | | - |
| 515 | + |
| 516 | + |
| 517 | + |
| 518 | + |
| 519 | + |
| 520 | + |
| 521 | + |
| 522 | + |
| 523 | + |
| 524 | + |
| 525 | + |
| 526 | + |
| 527 | + |
| 528 | + |
| 529 | + |
| 530 | + |
| 531 | + |
| 532 | + |
| 533 | + |
| 534 | + |
| 535 | + |
| 536 | + |
| 537 | + |
| 538 | + |
| 539 | + |
| 540 | + |
| 541 | + |
| 542 | + |
| 543 | + |
| 544 | + |
| 545 | + |
| 546 | + |
| 547 | + |
| 548 | + |
| 549 | + |
| 550 | + |
495 | 551 | |
496 | 552 | |
497 | | - |
| 553 | + |
| 554 | + |
| 555 | + |
| 556 | + |
| 557 | + |
| 558 | + |
| 559 | + |
| 560 | + |
| 561 | + |
| 562 | + |
| 563 | + |
| 564 | + |
| 565 | + |
| 566 | + |
| 567 | + |
| 568 | + |
| 569 | + |
498 | 570 | |
499 | | - |
500 | | - |
| 571 | + |
| 572 | + |
| 573 | + |
| 574 | + |
| 575 | + |
| 576 | + |
| 577 | + |
| 578 | + |
| 579 | + |
| 580 | + |
| 581 | + |
501 | 582 | |
502 | 583 | |
503 | 584 | |
|
Collapse file
test/fixtures/test-runner/coverage-snap/a-very-long-long-long-sub-dir/c.js
Copy file name to clipboard+52Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
Collapse file
test/fixtures/test-runner/output/coverage-width-100-uncovered-lines.snapshot
Copy file name to clipboardExpand all lines: test/fixtures/test-runner/output/coverage-width-100-uncovered-lines.snapshot+11-6Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | | - |
| 18 | + |
19 | 19 | |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
24 | 29 | |
25 | | - |
| 30 | + |
26 | 31 | |
27 | 32 | |
Collapse file
test/fixtures/test-runner/output/coverage-width-100.snapshot
Copy file name to clipboardExpand all lines: test/fixtures/test-runner/output/coverage-width-100.snapshot+10-5Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | | - |
| 18 | + |
19 | 19 | |
20 | | - |
21 | | - |
22 | | - |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
23 | 28 | |
24 | | - |
| 29 | + |
25 | 30 | |
26 | 31 | |
Collapse file
test/fixtures/test-runner/output/coverage-width-150-uncovered-lines.snapshot
Copy file name to clipboardExpand all lines: test/fixtures/test-runner/output/coverage-width-150-uncovered-lines.snapshot+11-6Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | | - |
| 18 | + |
19 | 19 | |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
24 | 29 | |
25 | | - |
| 30 | + |
26 | 31 | |
27 | 32 | |
Collapse file
test/fixtures/test-runner/output/coverage-width-150.snapshot
Copy file name to clipboardExpand all lines: test/fixtures/test-runner/output/coverage-width-150.snapshot+14-9Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
26 | 31 | |
Collapse file
test/fixtures/test-runner/output/coverage-width-40.mjs
Copy file name to clipboard+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
0 commit comments