TestNG Integration howto

Are there any docs on how to enable the testNG integration? My project has a bunch of tng tests, they're not referenced by my build.xml (my project is built using that). Ideally, I'd like to be able to build, then specify the testng IDEA configuration run for the tests.

2 comments
Comment actions Permalink

Hello Hani,

Are there any docs on how to enable the testNG
integration? My project has a bunch of tng tests,
they're not referenced by my build.xml (my project is


Unfortunately, TeamCity-TestNG integration currently works only
if you have testing tasks in your build.xml. TeamCity hooks on these tasks
and provides its own listener which sends test data to the server
while testing is in progress.

built using that). Ideally, I'd like to be able to
build, then specify the testng IDEA configuration run
for the tests.


Do I understand correctly that you'd like to get TestNG support
for Ipr runner? We had such plans and here is a Jira issue:
http://www.jetbrains.net/jira/browse/TW-1281

We use TestNG as a testing framework, and we are OK with Ant runner. We generate build script from IDEA (to get building/compilation
part of the build) and include this script into hand-written build.xml with other
tasks, like building release and running tests.

Kind regards,
KIR

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

0
Comment actions Permalink

Do I understand correctly that you'd like to get
TestNG support
for Ipr runner? We had such plans and here is a Jira
issue:
http://www.jetbrains.net/jira/browse/TW-1281

Sort of. I'd actually like something similar to how the inspections reports works.Where I can have my project being built by ant, but can specify a run configuration for testing which I don't need to specify in build.xml. The ipr runner wouldn't quite solve my issue since my project can't be built through the ipr alone.

We use TestNG as a testing framework, and we are OK
with Ant runner. We generate build script from IDEA
(to get building/compilation
part of the build) and include this script into
hand-written build.xml with other
tasks, like building release and running tests.

Yeah, it's trivial to add in the tests in build.xml, so that's probably the right way forward.

0

Please sign in to leave a comment.