You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2020/10/15 13:11:35 UTC
[sling-org-apache-sling-launchpad-testing] branch master updated:
SLING-9830 - update setup and instructions for server-side debugging of the
tests
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-launchpad-testing.git
The following commit(s) were added to refs/heads/master by this push:
new 7f25767 SLING-9830 - update setup and instructions for server-side debugging of the tests
7f25767 is described below
commit 7f2576710716a8074368c15e3f4ddc831643ebdd
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Thu Oct 15 15:11:17 2020 +0200
SLING-9830 - update setup and instructions for server-side debugging of the tests
---
.gitignore | 1 +
README.md | 27 +++++++++++++--------------
pom.xml | 17 +++++++++++++++++
3 files changed, 31 insertions(+), 14 deletions(-)
diff --git a/.gitignore b/.gitignore
index 5b783ed..58f6f36 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,4 @@ maven-eclipse.xml
.DS_Store
jcr.log
atlassian-ide-plugin.xml
+launcher/
diff --git a/README.md b/README.md
index 54dd4af..c22b18e 100644
--- a/README.md
+++ b/README.md
@@ -6,25 +6,24 @@
This module is part of the [Apache Sling](https://sling.apache.org) project.
-This module builds a Sling instance using bundles from the trunk, and
-runs integration tests against it via HTTP.
+It builds a Sling instance using the [Sling Starter Feature](https://github.com/apache/sling-org-apache-sling-starter) which has the same version has this module, and runs integration tests against it via HTTP.
-## Default build with integration tests
+The tests are provided by the sibling [sling-org-apache-sling-launchpad-integration-tests](https://github.com/apache/sling-org-apache-sling-launchpad-integration-tests)
+module.
-The integration tests are provided by the sibling [sling-org-apache-sling-launchpad-integration-tests](https://github.com/apache/sling-org-apache-sling-launchpad-integration-tests)
-module. By default the Sling instance to test is started, including a
-few test-specific bundles, the integration tests are executed and
-the instance is stopped.
-
-## Executing individual tests
+## How to execute and debug individual tests
To start a Sling instance with the exact same setup used in the full
-build of this module, use
+build of this module, run
+
+ mvn clean package
- mvn clean install -Dlaunchpad.keep.running=true -Dhttp.port=8080
+and then use
-Adding `-Dsling.debug.options="<debug options>"` for server-side debugging if needed.
+ java -jar target/dependency/org.apache.sling.feature.launcher.jar -f target/slingfeature-tmp/feature-testing-oak_tar.json
-Use CTRL-C to stop that instance.
+To start the Sling instance to test on port 8080 by default, using appropriate `java` options for server-side debugging
+as needed. CTRL-C stops that instance.
-The tests of the [sling-org-apache-sling-launchpad-integration-tests](https://github.com/apache/sling-org-apache-sling-launchpad-integration-tests) module can then be run against this instance, as described there.
+The tests of the [sling-org-apache-sling-launchpad-integration-tests](https://github.com/apache/sling-org-apache-sling-launchpad-integration-tests) module can then be run against this instance, as described
+in the README of that module.
diff --git a/pom.xml b/pom.xml
index ca25cb4..7649bda 100644
--- a/pom.xml
+++ b/pom.xml
@@ -189,6 +189,23 @@
</systemPropertyVariables>
</configuration>
</plugin>
+ <plugin>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>prepare-feature-launcher</id>
+ <goals>
+ <goal>get</goal>
+ <goal>copy</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <artifact>org.apache.sling:org.apache.sling.feature.launcher:1.1.4</artifact>
+ <stripVersion>true</stripVersion>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>