Configuration issue resulting in build failure


I'm sure this is a rather noob question but I am running into a problem with my TC build runner configuration.  I am using an IPR runner and my project uses TestNG as its test framework. When the build runs I get the following error:

test: BUILD FAILED C:\TeamCity\buildAgent\temp\buildTmp\idea4450runner\test-output.xml:5: The <classpath> for <junit> must include junit.jar if not in Ant's own classpath

Also slightly earlier in the log file is this message:

[12:22:46]: test
[12:22:47]: [test] junit
[12:22:47]: [junit] The <classpath> for <junit> must include junit.jar if not in Ant's own classpath

The project has no references to junit so I am not sure why I am seeing this error or how to go about correcting it. I'm running TC 4.0.2. Any help would be appreciated. Thanks,


Comment actions Permalink

I'm still at a loss here. I'm using the TestNG framework, not the JUnit framework and yet I am still getting these errors from TC's build referencing JUnit. Can someone who has successfully used TC with TestNG shed some light on their IPR build runner configuration? The documentation seems to indicate that the TestNG is supported along with JUnit but the IPR build runner screen only makes reference to JUnit. Thanks.

Comment actions Permalink

Well I think I found the answer to my question. Another section in the documentation indicates that only JUnit is supported by the IPR build runner in TC 4.0.2. This is really unfortunate considering TestNG has built in support in IDEA.

Comment actions Permalink

OK, now I've come across even more contradictory documentation. On the page:

The following is mentioned:

  • run newly added and modified tests first (available with JUnit, TestNG using Ant/Ipr build runners)
  • run recently failed tests first (available with JUnit, TestNG using Ant/Ipr build runners, and with NUnit using any .NET runner)

The above snippet implies that TestNG can us Ant or IPR build runners. This is in contradiction to the 4.0 docs. which say that only JUnit is availible in the IPR build runner. 

Based on what I have seen it appears the documentation is correct and the information on the web page above is not. Can someone in the know please clarify? Thanks.


Please sign in to leave a comment.