Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c0583f

Browse files
Googlerbuchgr
authored andcommitted
Exclude test/java/ in instrumentation_filter default
The computed default used in bazel coverage excludes both javatests/ and test/java. Having the stated default exclude only one of those is needlessly confusing. (Even though in practice that static default will rarely be used.) Also updates the comment about the computed default, since that logic has moved. PiperOrigin-RevId: 163325837
1 parent a95150a commit 2c0583f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/google/devtools/build/lib/analysis/config/BuildConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,11 +596,11 @@ public static class Options extends FragmentOptions implements Cloneable {
596596
public boolean stampBinaries;
597597

598598
// This default value is always overwritten in the case of "bazel coverage" by
599-
// CoverageCommand.setDefaultInstrumentationFilter().
599+
// a value returned by InstrumentationFilterSupport.computeInstrumentationFilter.
600600
@Option(
601601
name = "instrumentation_filter",
602602
converter = RegexFilter.RegexFilterConverter.class,
603-
defaultValue = "-/javatests[/:]",
603+
defaultValue = "-/javatests[/:],-/test/java[/:]",
604604
category = "semantics",
605605
documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
606606
effectTags = {OptionEffectTag.UNKNOWN},

0 commit comments

Comments
 (0)