Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests to be compatible with Gradle 7.6 output #5488

Merged
merged 1 commit into from Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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