From c295f2239049a677527fa2be7ab14d7e413da4b9 Mon Sep 17 00:00:00 2001 From: Xiaoyan Lin Date: Thu, 3 Mar 2016 23:06:30 -0800 Subject: [PATCH] Add junit timeout listener to print the full thread dump on test timeout Motivation: See #3172 Modifications: https://github.com/netty/netty-build/pull/6 added a junit timeout listener to the netty-build project. This patch just set it up. Result: If a test is set the timeout parameter using junit's @Test(timeout = ...) and the timeout is triggered, a full stack trace dump will be outputted and also output the deadlocks if any. --- pom.xml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0697eeb437..8264f7f8d4 100644 --- a/pom.xml +++ b/pom.xml @@ -201,6 +201,7 @@ UTF-8 UTF-8 + 22 1.3.18.GA 1.0.1.Final ${settings.localRepository}/kr/motd/javaagent/jetty-alpn-agent/${jetty.alpnAgent.version}/jetty-alpn-agent-${jetty.alpnAgent.version}.jar @@ -420,6 +421,12 @@ 4.12 test + + ${project.groupId} + netty-build + ${netty.build.version} + test + org.hamcrest hamcrest-library @@ -532,6 +539,11 @@ junit test + + ${project.groupId} + netty-build + test + org.hamcrest hamcrest-library @@ -714,7 +726,7 @@ ${project.groupId} netty-build - 21 + ${netty.build.version} @@ -774,6 +786,12 @@ random ${argLine.common} ${argLine.alpnAgent} ${argLine.leak} ${argLine.coverage} ${argLine.noUnsafe} + + + listener + io.netty.build.junit.TimedOutTestsListener + +