Skip to content

Commit

Permalink
Maven is now able to run TestNG own tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juherr committed Oct 31, 2015
1 parent 20d1616 commit 0a427bb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 152 deletions.
12 changes: 0 additions & 12 deletions maven/build-with-maven
@@ -1,20 +1,8 @@
# Two different POMs are needed to build TestNG with Maven because it's not
# allowed to have circular dependencies.
# - pom.xml defines the project version "n-SNAPSHOT", builds, jars and deploys (but doesn't
# run the tests).
# - pom-test.xml declares a test dependency on "n-SNAPSHOT", which it will find
# in the local repository (~/.m2/repository). All it does then is run the tests.


mvn clean install -Dgpg.skip=true
#or if you want to sign the jar, uncomment this:
#mvn clean install

mvn -f pom-test.xml test


echo
echo "To run the tests: mvn -f pom-test.xml test"
echo "To deploy to the snapshot repository: mvn deploy"
echo "To deploy to the release directory: mvn release:clean release:prepare release:perform"
echo "Nexus UI: https://oss.sonatype.org/index.html"
Expand Down
137 changes: 0 additions & 137 deletions maven/pom-test.xml

This file was deleted.

14 changes: 11 additions & 3 deletions pom.xml
Expand Up @@ -273,13 +273,21 @@
</configuration>
</plugin>

<!-- Tests (skipping) -->
<!-- Tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.14.1</version>
<version>2.19</version>
<configuration>
<skipTests>true</skipTests>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
</suiteXmlFiles>
<properties>
<property>
<name>listener</name>
<value>test.invokedmethodlistener.MyListener</value>
</property>
</properties>
</configuration>
</plugin>

Expand Down

0 comments on commit 0a427bb

Please sign in to comment.