Apache Sling Testing PaxExam

Clone this repo:
  1. 2bc462a set version to 4.0.0-SNAPSHOT by Oliver Lietz · 3 months ago master
  2. e10ff25 SLING-9940 Update to Sling Bundle Parent 40 by Oliver Lietz · 3 months ago
  3. bd82d00 SLING-9939 Support Server Mode by Oliver Lietz · 3 months ago
  4. cf071d7 SLING-9938 Make methods in TestSupport more accessible by Oliver Lietz · 3 months ago
  5. e24cdc4 SLING-9934 Fix typo in option spifly by Oliver Lietz · 3 months ago

Apache Sling

Build Status Test Status Coverage Sonarcloud Status JavaDoc Maven Central testing License

Apache Sling Testing PaxExam

This module is part of the Apache Sling project.


This module provides test support for use with Pax Exam to test with real Sling instances – no limitations or issues due to incomplete and faulty mock implementations.

See Testing PaxExam's documentation page for details and how to use.


  • Run integration tests in a tailored Sling instance in the same module (with the build artifact under test)
  • Use different versions in build (e.g. minimal) and tests (e.g. latest)
  • Overriding of versions
  • Adjusting of provided Options (ModifiableCompositeOptions)
  • Build bundles with test content and OSGi DS services on-the-fly (no need for extra modules)
  • Start Docker containers via Testcontainers