It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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
Community showcase
Asked in Opsgenie

CLOSED: AMA with Serhat Can on everything Opsgenie

Update: Our AMA with @Serhat Can is complete! Thank you everyone for taking the time to write your questions and participate, you are the folks that make the community enriching and fun! If...

564 views 15 7
View question

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you