You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: toolchain/mfc/cli/commands.py
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -444,6 +444,27 @@
444
444
type=str,
445
445
default=None,
446
446
),
447
+
Argument(
448
+
name="build-coverage-cache",
449
+
help="Run all tests with gcov instrumentation to build the file-level coverage cache. Pass --gcov to enable coverage instrumentation in the internal build step.",
450
+
action=ArgAction.STORE_TRUE,
451
+
default=False,
452
+
dest="build_coverage_cache",
453
+
),
454
+
Argument(
455
+
name="only-changes",
456
+
help="Only run tests whose covered files overlap with files changed since branching from master (uses file-level gcov coverage cache).",
457
+
action=ArgAction.STORE_TRUE,
458
+
default=False,
459
+
dest="only_changes",
460
+
),
461
+
Argument(
462
+
name="changes-branch",
463
+
help="Branch to compare against for --only-changes (default: master).",
464
+
type=str,
465
+
default="master",
466
+
dest="changes_branch",
467
+
),
447
468
],
448
469
mutually_exclusive=[
449
470
MutuallyExclusiveGroup(
@@ -476,13 +497,17 @@
476
497
Example("./mfc.sh test -j 4", "Run with 4 parallel jobs"),
477
498
Example("./mfc.sh test --only 3D", "Run only 3D tests"),
478
499
Example("./mfc.sh test --generate", "Regenerate golden files"),
500
+
Example("./mfc.sh test --only-changes -j 4", "Run tests affected by changed files"),
0 commit comments