You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by wi...@apache.org on 2014/09/19 09:30:57 UTC
[31/50] git commit: MARMOTTA-508: configuring surefire plugin to also
run testng suites
MARMOTTA-508: configuring surefire plugin to also run testng suites
Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/a55b059d
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/a55b059d
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/a55b059d
Branch: refs/heads/develop
Commit: a55b059dcef2ff8db2c46c751f18ee03a3dc4149
Parents: 37a2284
Author: Sergio Fernández <wi...@apache.org>
Authored: Thu Sep 11 09:50:45 2014 +0200
Committer: Sergio Fernández <wi...@apache.org>
Committed: Thu Sep 11 09:50:45 2014 +0200
----------------------------------------------------------------------
platform/marmotta-ldp/pom.xml | 18 ++++++++++++++++++
.../marmotta/platform/ldp/LdpTestSuite.java | 6 +++---
2 files changed, 21 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/marmotta/blob/a55b059d/platform/marmotta-ldp/pom.xml
----------------------------------------------------------------------
diff --git a/platform/marmotta-ldp/pom.xml b/platform/marmotta-ldp/pom.xml
index dcb5cc4..9dd7a17 100644
--- a/platform/marmotta-ldp/pom.xml
+++ b/platform/marmotta-ldp/pom.xml
@@ -65,6 +65,24 @@
</pluginManagement>
<plugins>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.surefire</groupId>
+ <artifactId>surefire-junit47</artifactId>
+ <version>2.17</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.surefire</groupId>
+ <artifactId>surefire-testng</artifactId>
+ <version>2.17</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+
<plugin>
<groupId>org.apache.marmotta</groupId>
<artifactId>buildinfo-maven-plugin</artifactId>
http://git-wip-us.apache.org/repos/asf/marmotta/blob/a55b059d/platform/marmotta-ldp/src/test/java/org/apache/marmotta/platform/ldp/LdpTestSuite.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-ldp/src/test/java/org/apache/marmotta/platform/ldp/LdpTestSuite.java b/platform/marmotta-ldp/src/test/java/org/apache/marmotta/platform/ldp/LdpTestSuite.java
index 2af104d..881edc1 100644
--- a/platform/marmotta-ldp/src/test/java/org/apache/marmotta/platform/ldp/LdpTestSuite.java
+++ b/platform/marmotta-ldp/src/test/java/org/apache/marmotta/platform/ldp/LdpTestSuite.java
@@ -35,7 +35,6 @@ import java.util.Map;
* @author Sergio Fernández
* @author Jakob Frank
*/
-@Ignore("Something does not work, all tests in the ldp-testsuite are SKIPPED")
public class LdpTestSuite {
/** @see org.testng.TestNG#HAS_FAILURE */
@@ -63,6 +62,7 @@ public class LdpTestSuite {
@Test
public void testSuite() {
+ log.debug("Running W3C official LDP Test Suite against {} server", baseUrl);
System.out.println("Running ldp-testsuite against " + baseUrl);
Map<String, String> options = new HashMap<>();
options.put("server", baseUrl);
@@ -70,8 +70,8 @@ public class LdpTestSuite {
options.put("non-rdf", null);
org.w3.ldp.testsuite.LdpTestSuite testSuite = new org.w3.ldp.testsuite.LdpTestSuite(options);
testSuite.run();
- Assert.assertTrue("ldp-testsuite finished with errors",(testSuite.getStatus() & TESTNG_STATUS_HAS_FAILURE) == 0);
- Assert.assertTrue("ldp-testsuite is empty - no test run",(testSuite.getStatus() & TESTNG_STATUS_HAS_NO_TEST) == 0);
+ Assert.assertTrue("ldp-testsuite finished with errors", (testSuite.getStatus() & TESTNG_STATUS_HAS_FAILURE) == 0);
+ Assert.assertTrue("ldp-testsuite is empty - no test run", (testSuite.getStatus() & TESTNG_STATUS_HAS_NO_TEST) == 0);
}
}