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).
Solved! Go to Solution.
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.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies