cancel
Showing results for 
Search instead for 
Did you mean: 

Testing environment setup

marcus
Champ in-the-making
Champ in-the-making
Has anyone got some recommendations for setting up unit tests to run within an alfresco environment? Currently, I've done the following;

- Create my own version of ApplicationContextHelper to use a different application-context.xml (testing-application-context.xml). My new application-context.xml does not load alfresco/extension/*-context.xml, instead loading alfresco/extension/*-context-testing.xml, so that I can specify different repository properties when running unit tests.
- Take a copy of BaseAlfrescoTestCase and use my own version of ApplicationContextHelper instead.
- Create unit tests extended from MyBaseAlfrescoTestCase, run them using ant.

How do other people do it?
1 REPLY 1

marcus
Champ in-the-making
Champ in-the-making
How do others get around the problem of Faces not being valid when running from the commandline?