Skip to content

Commit

Permalink
Enable coverage for generated source files
Browse files Browse the repository at this point in the history
Currently generated source files can't be included in the coverage report. Remove the check to enable coverage for the generated files.
  • Loading branch information
Rasrack authored May 11, 2020
1 parent f17c403 commit 2ae5658
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ public static InstrumentedFilesInfo collect(
continue;
}
for (Artifact artifact : dep.getProvider(FileProvider.class).getFilesToBuild().toList()) {
if (artifact.isSourceArtifact() &&
spec.instrumentedFileTypes.matches(artifact.getFilename())) {
if (spec.instrumentedFileTypes.matches(artifact.getFilename())) {
localSourcesBuilder.add(artifact);
}
}
Expand Down

0 comments on commit 2ae5658

Please sign in to comment.