Expand my Community achievements bar.

SOLVED

How to set-up a project that creates server-side (sling-based) tests in a CQ Author Instance

Avatar

Level 2

Aside from junit tests incorporated in every build and selenium tests for components, we want to explore the use of server-side (sling-based) tests for integration testing.  There will be cases where we need to test components that use references to classes such as SlingRepository or ResourceResolverFactory classes without using mock objects.  How should we go about it? What is the best way to implement?  We would want to create separate project that: executes all the test cases , create pages or nodes to test certain functionalities and then be able to delete created content nodes after all tests have been executed (specially if running in the production environment).

1 Accepted Solution

Avatar

Correct answer by
Level 10
2 Replies

Avatar

Level 10

Why not just  set-up a test CQ app that uses server-side OSGi bundles and other assets that you want to test. A lot of teams do that.  

Avatar

Correct answer by
Level 10