-Dclover.initstring.basedir={location of the db files that were created by the clover} settings

Hi,

 

I Am a new user to the clover. I have implemented a unit test cases and working as expected in my IDE(using TestNG+Maven in java).

Now my next task is to deploy the same into a server container and perform the same.

I followed the instructions as mentioned (https://dzone.com/articles/use-clover-generate-code-0).

I am not clear on the -Dclover.initstring.basedir={location of the db files that were created by the clover} settings where do we need to set (file name/path/place).

Please suggest me the further directions.

 

Thanks in advance

Ahmed

1 answer

0 vote

Hi Ahmed,

Now my next task is to deploy the same into a server container and perform the same.

Are you deploying your application to a server running on your workstation? Or to some remote machine? In case you're running a server locally - what working directory is set - does it point to your Eclipse workspace? 

I'm asking because in case you run it locally and the working directory is the same, the clover.initstring.basedir parameter should be obsolete, i.e. Clover should be able to locate databases.

The clover.initstring.basedir parameter is required in case Clover is unable to find databases. Which happens when relative paths are used for initstring (which is the default setting in Eclipse) and when the JVM process starts from a different working directory (so that relative paths cannot match).

Alternatively, you can use absolute paths in initstring.

First of all I would like to thank for your very quick response.

 

yes I have to deploy it to a remote server. Before to that I wanted to test the same in my local, hence I have created a local server in my machine wherein I will be deploying a war(application-clover.war) with clover jar(clover-4.1.1.jar) files.

Now I wanted to run my application to execute my unit test cases, As I have mentioned above I am using TestNG in maven build. through IDE(eclipse) i have an interface to run my test cases. Please suggest how to do that via command prompt with any settings I have missed as per my link(https://dzone.com/articles/use-clover-generate-code-0).

Please suggest me what should I do to deploy a application-clover.war and clover.jar so that I can execute my test cases. I have defined the clover.db path in my pom.xml as well.

 

Thanks,

Ahmed

Please help me out on this.

My task is to deploy a war file built by maven into a server which also has test classes.

How do i need to execute those test case classes.

What I have currently is application-clover.war, clover.db and clover,jar.

with these in my hand tell me how to proceed further to execute my test cases deployed on a server and generate a report via clover

Thanks,

Ahmed

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,222 views 6 19
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot