TestNG Support

I know it is slated for 1.5 (http://www.jetbrains.net/jira/browse/TW-286) and that I can use it now and just put stuff into artifacts, but I've become completely hooked on seeing the current test status.

What would be involved in adding something similar for TestNG on my own? What was involved for doing so in Ant? Was it a custom listener wired to the notifier through buildServerAntRunntime.jar?

Not sure how much time I'd have to put into this, but any pointers would be great.

--Tim

2 comments
Comment actions Permalink

Hi Tim,

I suppose it would not be a simple task. OpenAPI is not settled yet.

You'll have to implement AntTaskExtension interface and put implementation with PicoContainer
descriptor to buildAgent/plugins/testng/lib directory (see Plugin Development page on our confluence).

For logging use BuildProgressLogger, which is passed to AntTaskExtension method. Probably the
most simple way to use it is to cast it to JUnitLogger and call it's methods for tests logging
(you see, this is not nice :( )

Hope this helps in some degree,
Good luck,

KIR


Tim McNerney wrote:

I know it is slated for 1.5 (http://www.jetbrains.net/jira/browse/TW-286) and that I can use it now and just put stuff into artifacts, but I've become completely hooked on seeing the current test status.

What would be involved in adding something similar for TestNG on my own? What was involved for doing so in Ant? Was it a custom listener wired to the notifier through buildServerAntRunntime.jar?

Not sure how much time I'd have to put into this, but any pointers would be great.

--Tim



--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

If you're scared for me, I'm scared for me.

I think I'll hold off for the moment.

Thanks.

--Tim

0

Please sign in to leave a comment.