Arquillian does use some ThreadLocals, but it should clean up after it self..
Looking at the TestNG code:
This code holds a ThreadLocal with the TestResult:
and set again here in the final block https://github.com/cbeust/testng/blob/master/src/main/java/org/testng/internal/Invoker.java#L584
Looking at the other uses of this method, it should probably be set to null in the final block. so this looks to me like a bug in TestNG.
I'll ping Cedric to confirm..
1 of 1 people found this helpful
Yup, this looks like the correct fix. I'm already setting it to null in another part of the code but forgot it here.
I just pushed a beta with the fix: http://testng.org/beta
Cedric, do TestNG snapshots get published to any public Maven repositories?
No, Maven Central doesn't allow SNAPSHOTS and it's usually a hassle to explain to people how to hook up their build to check the SNAPSHOT repositories :-)
You can, however, use the beta jar in your maven build with systemPath:
Cedric Beust wrote:
it's usually a hassle to explain to people how to hook up their build to check the SNAPSHOT repositories :-)
Really? I'm a Maven n00b and it took me all of two minutes to figure out how to add the JBoss repo to my POMs... :-D
Thanks for the help, guys!