On Thu, May 23, 2013 at 4:34 PM, Lukas Eder <[email protected]> wrote: > ...maybe, > such a Maven plugin and pre-configured test repository could be leveraged > for other purposes, most importantly for mocking Sling as a whole?...
The problem with a Maven plugin is you cannot use it when testing from some IDEs. What we currently have is the RepositoryProvider utility [1] for tests which need a JCR repository, it's very easy to use an non-intrusive. Enhancing it to detect CND files in (overridable) well-known locations should be easy. There's also been discussions on our dev list about making it easier to run OSGi-based tests, when you need Sling services and not just a repository. We're using Pax Exam in the installer/it module for example, it's not very complicated to setup but might be made even easier. -Bertrand [1] https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/jcr/RepositoryProvider.java
