cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco and Maven: how to run existing tests?

florentdelannoy
Champ in-the-making
Champ in-the-making
Hello,

I'm currently developing on Alfresco v4.2 through the Maven artifacts repository.

According to the Alfresco SDK (not in Maven, but rather in the "old" (?) ANT builds), there are quite a lot of unit tests and integration tests one can run against an instance of Alfresco.

I'd like to run these tests yo make sure none of my changes introduce regressions, but they don't seem to appear in my Maven projects. Running 'mvn test' or 'mvn integration-test' just results in 'No tests to run.'

Has anyone had any success in doing so?

Thanks!

Florent
2 REPLIES 2

kaynezhang
World-Class Innovator
World-Class Innovator
you can use "ant test" command as instead

Hi,

The Maven Archetypes lack the files Ant relies on (build.xml, etc), so we can't use ant at all. Unless there is a way to get Maven to download the ant files somehow?

Florent