TeamCity 4.0 EAP 7888 : ANT + Code Inspection + Code Coverage + Duplicate Finders


Hi,

I am having Java based project and using Ant script for build, unit tests etc. I could able to configure it in TeamCity 4.0 EAP 7888, but I want to use the features of Code Inspection, Duplication Finders, Code Coverage along with my unit testing (Junit configured in my Ant Script).I found that these features are available in TeamCity, but not sure how can we configure all the combinations like Ant (for build, unit testing etc), Code Inspection, Duplication Finders, Code Coverage etc for my project.

Please provide me the inputs for the same.

Thanks
Saran



3 comments
Comment actions Permalink

Hello Saran,

   To enable code coverage for your project, you need to enable corresponding checkbox at the bottom of the Ant runner page.

   With Duplicates Finder/Inspections the situation is more tricky. To run them, you need a description of your project.
   TeamCity understands projects in two formats: maven's pom.xml or IntelliJ IDEA project file.

   So you need to prepare either pom.xml or import your project into IntelliJ IDEA and save project files to version control.
   After that, you can create build configurations with build runners Inspections/Duplicates finder.

   The documentation is available at
   http://www.jetbrains.net/confluence/display/TCD4/Inspections and
   http://www.jetbrains.net/confluence/display/TCD4/Duplicates+Finder+%28Java%29

   Hope this helps,
   KIR

0
Comment actions Permalink

Hi,

Thanks for the information. So, it means that TeamCity will not understand Ant based XML , So the only option here is : converting my project into IntelliJ IDea or maven xml file? .  Do we have any other option to use these features Inspection & Duplicate Finders without altering my project settings?

Thanks
Saravanan

0
Comment actions Permalink

Hi,

  You cannot use TeamCity's inspections and duplicates for java projects unless you have corresponding project description.
  But that doesn't mean you should throw away your ant script.
 
   Unfortunately, ant's build.xml is too flexible, so it is hard to extract project structure from this format. You can use it for tests,
  code coverage, deployment, but for inspections and duplicates runners more strict project description is required.

   Regards,
   KIR

0

Please sign in to leave a comment.