Clover: How not to lose the connection with sources of projects, if they are located on remote machine?

Hi,

  • I clover2:setup/instrument my developer's Application's codes on Machine A, than I copy the generated cloverized jars to another host Machine B.
  • I need to have copied the instrumented jars to another host (MachineB) together with colver.db file(s), where my Application is installed, to replace its common jars with the cloverized jars and restart the application, so it starts using cloverized jars. (Please note that I don't/can't copy my source codes to the same machine B)
  • Later on I'm executing tests from a remote machine (MachineC, MahcineD). The tests use instrumented jars located on machine B. The problem is that on my MachineB I don't have source codes, when generating the coverage reports with (clover2:clover command), the sources can't be found.

What could be done in this kind of situation?

As I unsertand, the paths of source codes, are being saved in instrumented jars, so later on they can be used during reports generation(clover), to have the correct links. In this case, when during reports generation it tries to find source codes (java files), it fails, as the sources are located in Machine A but not on machineB.

Thanks,

Narine

1 answer

This widget could not be displayed.

Hi,

You can make it other way, i.e. when tests are finished you can copy clover directory (containing clover.db and coverage files) from machine B back to machine A where sources are located.

You can also disable source files access during report generation.

Some more information:
https://answers.atlassian.com/questions/14895/source-path-for-clover-report<br< a="">>https://answers.atlassian.com/questions/240733/are-source-files-mandatory-for-clover-report<br< a="">>

Cheers,
Jacek

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

176 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you