Skip to content

Commit

Permalink
Revert "add thread dump listener"
Browse files Browse the repository at this point in the history
This reverts commit 0e96a76.
  • Loading branch information
mslabek committed Dec 31, 2024
1 parent 0e96a76 commit ed405d9
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -477,27 +477,6 @@ def filterDevConfigArtifacts(files: Seq[(File, String)]) = {
files.filterNot { case (file, _) => devConfigFiles.contains(file.getName) }
}

ThisBuild / Test / testListeners += new TestReportListener {

override def testEvent(event: TestEvent): Unit = {
event.result.foreach {
case TestResult.Failed => {
import java.lang.management.ManagementFactory

println("Test failed! Generating thread dump...")
val threadDump = ManagementFactory.getThreadMXBean.dumpAllThreads(true, true)
threadDump.foreach { thread =>
println(thread.toString)
}
}
}
}

override def startGroup(name: String): Unit = ()
override def endGroup(name: String, t: Throwable): Unit = ()
override def endGroup(name: String, result: TestResult): Unit = ()
}

lazy val distribution: Project = sbt
.Project("dist", file("nussknacker-dist"))
.settings(commonSettings)
Expand Down

0 comments on commit ed405d9

Please sign in to comment.