Skip to content

Commit

Permalink
Update tests to be compatible with Gradle 7.6 output (#5488)
Browse files Browse the repository at this point in the history
  • Loading branch information
3flex committed Oct 31, 2022
1 parent e5a9768 commit 83331fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -138,15 +138,15 @@ class DetektAndroidSpec {
@DisplayName("task :app:detektMain")
fun appDetektMain() {
gradleRunner.runTasksAndExpectFailure(":app:detektMain") { result ->
assertThat(result.output).contains("Task 'detektMain' not found in project")
assertThat(result.output).containsIgnoringCase("Task 'detektMain' not found in project")
}
}

@Test
@DisplayName("task :app:detektTest")
fun appDetektTest() {
gradleRunner.runTasksAndExpectFailure(":app:detektTest") { result ->
assertThat(result.output).contains("Task 'detektTest' not found in project")
assertThat(result.output).containsIgnoringCase("Task 'detektTest' not found in project")
}
}
}
Expand Down
Expand Up @@ -73,14 +73,14 @@ class DetektMultiplatformSpec {
@Test
fun `does not configure baseline task`() {
gradleRunner.runTasksAndExpectFailure(":shared:detektBaselineMetadataMain") { result ->
assertThat(result.output).contains("Task 'detektBaselineMetadataMain' not found in project")
assertThat(result.output).containsIgnoringCase("Task 'detektBaselineMetadataMain' not found in project")
}
}

@Test
fun `does not configure detekt task`() {
gradleRunner.runTasksAndExpectFailure(":shared:detektMetadataMain") { result ->
assertThat(result.output).contains("Task 'detektMetadataMain' not found in project")
assertThat(result.output).containsIgnoringCase("Task 'detektMetadataMain' not found in project")
}
}
}
Expand Down

0 comments on commit 83331fa

Please sign in to comment.