Skip to content

Commit

Permalink
reverted changes in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls committed Nov 16, 2023
1 parent 02d687b commit 5656f3c
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,7 @@ class DiktatJavaExecTaskTest {
output = "report.json"
}
val task = project.tasks.getByName(DIKTAT_CHECK_TASK) as DiktatCheckTask
val (firstReporter, secondReporter) = task.diktatRunner.diktatReporter
.unwrap<Iterable<DiktatReporter>>().first()
.unwrap<DiktatReporter>()
.unwrap<Iterable<DiktatReporter>>()
.toList()
assert(
firstReporter.unwrapToKtlint() is SarifReporter
)
assert(
secondReporter.unwrapToKtlint() is JsonReporter
)
assert(task.diktatRunner.diktatReporter.unwrapFirst() is SarifReporter)
Assertions.assertEquals(
project.rootDir.toString(),
System.getProperty("user.home")
Expand All @@ -182,6 +172,7 @@ class DiktatJavaExecTaskTest {
assertFiles(emptyList()) {
inputs { exclude("*") }
diktatConfigFile = project.file("../diktat-analysis.yml")
reporter = "sarif"
}
val task = project.tasks.getByName(DIKTAT_CHECK_TASK) as DiktatCheckTask
assert(task.diktatRunner.diktatReporter.unwrapFirst() is SarifReporter)
Expand Down

0 comments on commit 5656f3c

Please sign in to comment.