It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
Hi,
I have a project that I'm trying to set up with clover. All the tests pass without clover but not with clover. The error is that test context files in other packages cannot be found:
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [loaders-commons/testContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [loaders-commons/testContext.xml] cannot be opened because it does not exist
This is the Junit part that configures the context:
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {
"classpath:loaders-commons/testContext.xml",
"classpath:loaders-persistence/testContext.xml",
"classpath:loaders-persistence/applicationContext.xml"
})
As mentioned this all works when not running clover, ie mvn install. These are my specs:
java version "1.7.0_25"
Apache Maven 3.0.5
<artifactId>maven-clover2-plugin</artifactId>
<version>3.1.12</version>
<org.springframework.version>3.0.7.RELEASE</org.springframework.version>
Any suggestions would be appreciated.
Hi Martin,
Few questions:
If all answers are "yes", then I suggest replacing clover2:instr by clover2:setup.
Cheers
Marek
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.
Read moreAs a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.