You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Bhathiya Jayasekara <to...@gmail.com> on 2012/08/05 00:34:33 UTC

Build failure in testing/samples/integration-tests

Hi all,

I did a `maven clean install` in testing/samples/integration-tests. But I
get following error in tests.
I get the same error when I write my own test cases.
What could be the problem?

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running
org.apache.sling.testing.samples.integrationtests.http.OsgiConsoleTest
10 [main] INFO
org.apache.sling.testing.samples.integrationtests.http.OsgiConsoleTest -
Server base URL=http://localhost:8080
27 [main] INFO org.apache.sling.testing.tools.jarexec.JarExecutor -
Executable jar options: -p 8080
29 [main] INFO org.apache.sling.testing.tools.jarexec.JarExecutor -
Executing java -Xmx512m -jar
/home/bhathiya/Apps/Sling/sling/testing/samples/integration-tests/target/dependency/org.apache.sling.launchpad-6-standalone.jar
-p 8080
37 [main] INFO org.apache.sling.testing.tools.sling.TimeoutsProvider -
Timeout factor set to 1.0 from system property
sling.testing.timeout.multiplier
37 [main] INFO
org.apache.sling.testing.samples.integrationtests.http.OsgiConsoleTest -
Will wait up to 60 seconds for server to become ready
46 [main] INFO
org.apache.sling.testing.samples.integrationtests.http.OsgiConsoleTest -
Checking that GET requests return expected content (timeout=60 seconds):
[/:script src="system/sling.js",
/.explorer.html:href="/libs/sling/explorer/css/explorer.css",
/sling-test/sling/sling-test.html:Sling client library tests]
05.08.2012 00:47:50.805 *INFO* [main] Setting sling.home=sling (default)
05.08.2012 00:47:50.807 *INFO* [main] Starting Sling in sling
(/home/bhathiya/Apps/Sling/sling/testing/samples/integration-tests/sling)
05.08.2012 00:47:50.816 *INFO* [main] Checking launcher JAR in folder sling
05.08.2012 00:47:50.837 *INFO* [main] Installing new launcher:
jar:file:/home/bhathiya/Apps/Sling/sling/testing/samples/integration-tests/target/dependency/org.apache.sling.launchpad-6-standalone.jar!/resources/org.apache.sling.launchpad.base.jar,
2.3.0 (org.apache.sling.launchpad.base.jar.1344107870836)
05.08.2012 00:47:50.849 *INFO* [main] Loading launcher class
org.apache.sling.launchpad.base.app.MainDelegate from
org.apache.sling.launchpad.base.jar.1344107870836
05.08.2012 00:47:50.862 *INFO* [main] Starting launcher ...
05.08.2012 00:47:50.864 *INFO* [main] HTTP server port: 8080
05.08.2012 00:47:53.220 *INFO* [main] Startup completed
61009 [main] INFO
org.apache.sling.testing.samples.integrationtests.http.OsgiConsoleTest -
Server not ready after 60 seconds, giving up
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 61.139 sec
<<< FAILURE!
Running
org.apache.sling.testing.samples.integrationtests.serverside.DontCareForTestsCountTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec
<<< FAILURE!
Running
org.apache.sling.testing.samples.integrationtests.serverside.JSONResponseTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec
<<< FAILURE!
Running
org.apache.sling.testing.samples.integrationtests.serverside.ServerSideSampleTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
<<< FAILURE!
Running
org.apache.sling.testing.samples.integrationtests.serverside.FailingTestsTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec
<<< FAILURE!
Running
org.apache.sling.testing.samples.integrationtests.serverside.SingleServerSideMethodTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec
<<< FAILURE!
Running
org.apache.sling.testing.samples.integrationtests.serverside.scriptable.ScriptableTestsTest
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.132 sec
<<< FAILURE!
Running
org.apache.sling.testing.samples.integrationtests.serverside.sling.SlingServerSideSingleMethodTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec
<<< FAILURE!
Running
org.apache.sling.testing.samples.integrationtests.serverside.sling.SlingServerSideTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
<<< FAILURE!

Results :

Failed tests:

testSomeConsolePaths(org.apache.sling.testing.samples.integrationtests.http.OsgiConsoleTest):
Server not ready after 60 seconds, giving up

initializationError(org.apache.sling.testing.samples.integrationtests.serverside.DontCareForTestsCountTest):
Server is not ready according to previous tests

testWithRetries(org.apache.sling.testing.samples.integrationtests.serverside.JSONResponseTest):
Server is not ready according to previous tests

initializationError(org.apache.sling.testing.samples.integrationtests.serverside.ServerSideSampleTest):
Server is not ready according to previous tests

testFailures(org.apache.sling.testing.samples.integrationtests.serverside.FailingTestsTest):
Server is not ready according to previous tests

initializationError(org.apache.sling.testing.samples.integrationtests.serverside.SingleServerSideMethodTest):
Server is not ready according to previous tests

testScriptableTest[0](org.apache.sling.testing.samples.integrationtests.serverside.scriptable.ScriptableTestsTest):
Server is not ready according to previous tests

testScriptableTest[1](org.apache.sling.testing.samples.integrationtests.serverside.scriptable.ScriptableTestsTest):
Server is not ready according to previous tests

initializationError(org.apache.sling.testing.samples.integrationtests.serverside.sling.SlingServerSideSingleMethodTest):
Server is not ready according to previous tests

initializationError(org.apache.sling.testing.samples.integrationtests.serverside.sling.SlingServerSideTest):
Server is not ready according to previous tests

Tests run: 10, Failures: 10, Errors: 0, Skipped: 0

[WARNING] File encoding has not been set, using platform encoding UTF-8,
i.e. build is platform dependent!
[INFO]
[INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @
org.apache.sling.testing.samples.integrationtests ---
[INFO] Checking legal files in:
org.apache.sling.testing.samples.integrationtests-1.0.7-SNAPSHOT.jar
[INFO] Checking legal files in:
org.apache.sling.testing.samples.integrationtests-1.0.7-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-failsafe-plugin:2.7.2:verify (verify) @
org.apache.sling.testing.samples.integrationtests ---
[INFO] Failsafe report directory:
/home/bhathiya/Apps/Sling/sling/testing/samples/integration-tests/target/failsafe-reports
[WARNING] File encoding has not been set, using platform encoding UTF-8,
i.e. build is platform dependent!
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1:49.660s
[INFO] Finished at: Sun Aug 05 00:49:01 IST 2012
[INFO] Final Memory: 20M/84M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-failsafe-plugin:2.7.2:verify (verify) on
project org.apache.sling.testing.samples.integrationtests: There are test
failures.
[ERROR]
[ERROR] Please refer to
/home/bhathiya/Apps/Sling/sling/testing/samples/integration-tests/target/failsafe-reports
for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Thank you.

--Bhathiya