Still cheating on emma

I have added coverage.zip as an artifact of my build but no tab is being created. on the build overview page.

The coverage statistics are being populated correctly (although I think this is using coverage.txt which is also an atrifact)

I have noticed that the coverage.zip produced by the internal emma has an extra file in it called '_files' which is in addition to the index.htm and the '_files' folder with the drill down info in it. Is some magic processing going on in order to make the zip palletable for teamcity to display?

At the moment, my ant task simply zips up the index.htm and the _files directory which are the output of the emma report. Do I need to do something more to integrate completely with teamcity or is this as good as I am going to get?

Thanks in advance

4 comments
Comment actions Permalink

Hello,

  In fact, if you have coverage.zip as an artifact, the corresponding tab should be available.
  For a double-check, please make sure that <TC_DATA>/config/main-config.xml file contains a descriptor of such tab:

<report-tab title="Code Coverage" basePath="coverage.zip" />


  The _files entry in the zip file describes a directory, and I think it is required for correct processing of the zip file. In general,
  if you create zip file with standard command-line tools, it should work.

  Kind regards,
  KIR

0
Comment actions Permalink

thanks KIR,

spotting the entry in the main-config.xml is what gave me the idea in the first place . It is there and the structure of the zip I have created is as follows:

coverage.zip
     |- "_files" directory containing 0.htm etc., etc.
     |- "index.html"

but no tab appears. If your interested in why then feel free to investigate but I am not desperate to get it working as it was a cheat in the first place. I'll make do with the zip and the coverage chart on the statistics page. This meets my needs just fine.

Adam

0
Comment actions Permalink

Hello,

  Stupid question - do you have this coverage.zip available as artifact of your build? Is it placed to the artifact root (near coverage.txt)?
  Is it openable by an archiver after upload? If all answers are "yes", I'd appreciate if you send me to kir%jetbrains$com this archive - I'd
  like to figure out what's wrong with your archive.

  Regards,
  KIR

0
Comment actions Permalink

teamcity.JPG
The stupid questions often expose the stupid mistakes
The archive is on it's way to you.

0

Please sign in to leave a comment.