-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[testng] implement as a test listener instead of requiring inheritance (
#331) * [testng] implement as a test listener instead of requiring inheritance * [testng] delete deprecated classes and prep for 2.0 beta * [testng] revamp the listener to take the configuration information as part of startSession instead of requiring static setters * [testng] revamp listener again to use a SessionContext class to do the heavy lifting * [testng] need to support any superclass setting the listener
- Loading branch information
1 parent
a435b22
commit 53c3515
Showing
26 changed files
with
755 additions
and
644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,178 +2,217 @@ | |
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://maven.apache.org/POM/4.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>com.saucelabs</groupId> | ||
<artifactId>saucebindings-testng</artifactId> | ||
<version>1.6.0-SNAPSHOT</version> | ||
<name>SauceBindings TestNG</name> | ||
<description>Provides tools for interacting with SauceLabs with TestNG</description> | ||
<url>https://opensource.saucelabs.com/sauce_bindings</url> | ||
<licenses> | ||
<license> | ||
<name>MIT License</name> | ||
<url>https://www.opensource.org/licenses/mit-license.php</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
<groupId>com.saucelabs</groupId> | ||
<artifactId>saucebindings-testng</artifactId> | ||
<version>${saucebindings-testng.version}</version> | ||
<name>SauceBindings TestNG</name> | ||
<description>Provides tools for interacting with SauceLabs with TestNG</description> | ||
<url>https://opensource.saucelabs.com/sauce_bindings</url> | ||
<licenses> | ||
<license> | ||
<name>MIT License</name> | ||
<url>https://www.opensource.org/licenses/mit-license.php</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
|
||
<organization> | ||
<name>Sauce Labs</name> | ||
<url>http://www.saucelabs.com/</url> | ||
</organization> | ||
<organization> | ||
<name>Sauce Labs</name> | ||
<url>http://www.saucelabs.com/</url> | ||
</organization> | ||
|
||
<developers> | ||
<developer> | ||
<name>Titus Fortner</name> | ||
<email>[email protected]</email> | ||
<organization>Sauce Labs</organization> | ||
<organizationUrl>https://www.saucelabs.com/</organizationUrl> | ||
</developer> | ||
<developer> | ||
<name>Nikolay Advolodkin</name> | ||
<email>[email protected]</email> | ||
<organization>Sauce Labs</organization> | ||
<organizationUrl>https://www.saucelabs.com/</organizationUrl> | ||
</developer> | ||
</developers> | ||
<developers> | ||
<developer> | ||
<name>Titus Fortner</name> | ||
<email>[email protected]</email> | ||
<organization>Sauce Labs</organization> | ||
<organizationUrl>https://www.saucelabs.com/</organizationUrl> | ||
</developer> | ||
<developer> | ||
<name>Nikolay Advolodkin</name> | ||
<email>[email protected]</email> | ||
<organization>Sauce Labs</organization> | ||
<organizationUrl>https://www.saucelabs.com/</organizationUrl> | ||
</developer> | ||
</developers> | ||
|
||
<properties> | ||
<maven.compiler.source>11</maven.compiler.source> | ||
<maven.compiler.target>11</maven.compiler.target> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
<properties> | ||
<saucebindings-testng.version>2.0.0-beta.1-SNAPSHOT</saucebindings-testng.version> | ||
<surefire.parallel>8</surefire.parallel> | ||
<maven.compiler.source>11</maven.compiler.source> | ||
<maven.compiler.target>11</maven.compiler.target> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<scm> | ||
<connection>scm:git:git://github.com/saucelabs/sauce_bindings.git</connection> | ||
<developerConnection>scm:git:[email protected]:saucelabs/sauce_bindings.git</developerConnection> | ||
<url>[email protected]:saucelabs/sauce_bindings.git</url> | ||
<tag>HEAD</tag> | ||
</scm> | ||
<scm> | ||
<connection>scm:git:git://github.com/saucelabs/sauce_bindings.git</connection> | ||
<developerConnection>scm:git:[email protected]:saucelabs/sauce_bindings.git</developerConnection> | ||
<url>[email protected]:saucelabs/sauce_bindings.git</url> | ||
<tag>HEAD</tag> | ||
</scm> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.saucelabs</groupId> | ||
<artifactId>sauce_bindings</artifactId> | ||
<version>1.5.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.testng</groupId> | ||
<artifactId>testng</artifactId> | ||
<version>7.10.2</version> | ||
</dependency> | ||
</dependencies> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.saucelabs</groupId> | ||
<artifactId>sauce_bindings</artifactId> | ||
<version>2.0.0-beta.1-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.testng</groupId> | ||
<artifactId>testng</artifactId> | ||
<version>7.10.2</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
<version>1.18.30</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<version>3.0.0</version> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>jar-no-fork</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>3.1.2</version> | ||
<configuration> | ||
<parallel>methods</parallel> | ||
<threadCount>50</threadCount> | ||
<redirectTestOutputToFile>false</redirectTestOutputToFile> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<version>1.6</version> | ||
<configuration> | ||
<gpgArguments> | ||
<arg>--pinentry-mode</arg> | ||
<arg>loopback</arg> | ||
</gpgArguments> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>sign-artifacts</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>sign</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
<version>1.6.7</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<serverId>ossrh</serverId> | ||
<nexusUrl>https://oss.sonatype.org/</nexusUrl> | ||
<autoReleaseAfterClose>true</autoReleaseAfterClose> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-release-plugin</artifactId> | ||
<version>2.5.3</version> | ||
<configuration> | ||
<goals>deploy nexus-staging:release</goals> | ||
<autoVersionSubmodules>true</autoVersionSubmodules> | ||
<useReleaseProfile>false</useReleaseProfile> | ||
<releaseProfiles>release</releaseProfiles> | ||
<goals>deploy</goals> | ||
</configuration> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.maven.scm</groupId> | ||
<artifactId>maven-scm-provider-gitexe</artifactId> | ||
<version>2.1.0</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-scm-plugin</artifactId> | ||
<version>1.9.4</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>3.2.0</version> | ||
<executions> | ||
<execution> | ||
<id>attach-javadocs</id> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<source>8</source> | ||
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<build> | ||
<resources> | ||
<resource> | ||
<directory>src/main/resources</directory> | ||
<filtering>true</filtering> | ||
</resource> | ||
</resources> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<version>3.0.0</version> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>jar-no-fork</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>3.1.2</version> | ||
<executions> | ||
<execution> | ||
<id>parallel-tests</id> | ||
<goals> | ||
<goal>test</goal> | ||
</goals> | ||
<configuration> | ||
<parallel>methods</parallel> | ||
<threadCount>${surefire.parallel}</threadCount> | ||
<redirectTestOutputToFile>false</redirectTestOutputToFile> | ||
<includes> | ||
<include>**/*Example.java</include> | ||
</includes> | ||
<excludes> | ||
<exclude>**/*ParameterizedExample.java</exclude> | ||
</excludes> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>parameterized-tests</id> | ||
<goals> | ||
<goal>test</goal> | ||
</goals> | ||
<configuration> | ||
<suiteXmlFiles> | ||
<suiteXmlFile>src/test/parameterized.xml</suiteXmlFile> | ||
</suiteXmlFiles> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<version>1.6</version> | ||
<configuration> | ||
<gpgArguments> | ||
<arg>--pinentry-mode</arg> | ||
<arg>loopback</arg> | ||
</gpgArguments> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>sign-artifacts</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>sign</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
<version>1.6.7</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<serverId>ossrh</serverId> | ||
<nexusUrl>https://oss.sonatype.org/</nexusUrl> | ||
<autoReleaseAfterClose>true</autoReleaseAfterClose> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-release-plugin</artifactId> | ||
<version>2.5.3</version> | ||
<configuration> | ||
<goals>deploy nexus-staging:release</goals> | ||
<autoVersionSubmodules>true</autoVersionSubmodules> | ||
<useReleaseProfile>false</useReleaseProfile> | ||
<releaseProfiles>release</releaseProfiles> | ||
<goals>deploy</goals> | ||
</configuration> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.maven.scm</groupId> | ||
<artifactId>maven-scm-provider-gitexe</artifactId> | ||
<version>2.0.1</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-scm-plugin</artifactId> | ||
<version>1.9.4</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>3.2.0</version> | ||
<executions> | ||
<execution> | ||
<id>attach-javadocs</id> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<source>8</source> | ||
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>ossrh</id> | ||
<name>Nexus Release Repository</name> | ||
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
<repository> | ||
<id>ossrh</id> | ||
<name>Nexus Release Repository</name> | ||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
</distributionManagement> | ||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>ossrh</id> | ||
<name>Nexus Release Repository</name> | ||
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
<repository> | ||
<id>ossrh</id> | ||
<name>Nexus Release Repository</name> | ||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
</distributionManagement> | ||
</project> |
Oops, something went wrong.