Skip to content

Commit

Permalink
test: reproduce the reported problem as #196
Browse files Browse the repository at this point in the history
  • Loading branch information
KengoTODA committed Mar 5, 2020
1 parent e11966d commit ebab394
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,4 +377,19 @@ public class Foo {
result.task(":classes").outcome == TaskOutcome.SUCCESS
result.task(":spotbugsMain").outcome == TaskOutcome.NO_SOURCE
}
def "can run analysis when check task is triggered"() {
when:
BuildResult result =
GradleRunner.create()
.withProjectDir(rootDir)
.withArguments("clean", "check")
.withPluginClasspath()
.forwardOutput()
.withGradleVersion(version)
.build()
then:
result.task(":spotbugsMain").outcome == TaskOutcome.SUCCESS
}
}

0 comments on commit ebab394

Please sign in to comment.