Skip to content

Commit ca907f5

Browse files
authored
Merge pull request #9 from Nordstrom/pr/track-suites
Pr/track suites
2 parents ad1f1e8 + 77d44f5 commit ca907f5

21 files changed

+626
-439
lines changed

pom.xml

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>com.nordstrom.tools</groupId>
44
<artifactId>junit-foundation</artifactId>
5-
<version>3.2.2-SNAPSHOT</version>
5+
<version>4.0.0-SNAPSHOT</version>
66
<packaging>jar</packaging>
77

88
<name>JUnit Foundation</name>
@@ -28,17 +28,19 @@
2828
<properties>
2929
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3030
<java-utils.version>1.3.3</java-utils.version>
31-
<surefire-plugin.version>2.19.1</surefire-plugin.version>
31+
<surefire-plugin.version>2.22.0</surefire-plugin.version>
3232
<compiler-plugin.version>3.6.0</compiler-plugin.version>
3333
<source-plugin.version>3.0.1</source-plugin.version>
3434
<javadoc-plugin.version>2.10.4</javadoc-plugin.version>
35-
<settings.version>2.0.7</settings.version>
35+
<settings.version>2.2.0</settings.version>
3636
<junit.version>4.12</junit.version>
37-
<bytebuddy.version>1.7.9</bytebuddy.version>
37+
<testng.version>6.10</testng.version>
38+
<bytebuddy.version>1.8.13</bytebuddy.version>
3839
<logback.version>1.2.2</logback.version>
3940
<gpg-plugin.version>1.6</gpg-plugin.version>
4041
<staging-plugin.version>1.6.7</staging-plugin.version>
4142
<release-plugin.version>2.5.3</release-plugin.version>
43+
<jar-plugin.version>3.0.0</jar-plugin.version>
4244
<skipSigning>true</skipSigning>
4345
</properties>
4446

@@ -77,11 +79,21 @@
7779
<artifactId>junit</artifactId>
7880
<version>${junit.version}</version>
7981
</dependency>
82+
<dependency>
83+
<groupId>org.testng</groupId>
84+
<artifactId>testng</artifactId>
85+
<version>${testng.version}</version>
86+
</dependency>
8087
<dependency>
8188
<groupId>net.bytebuddy</groupId>
8289
<artifactId>byte-buddy</artifactId>
8390
<version>${bytebuddy.version}</version>
8491
</dependency>
92+
<dependency>
93+
<groupId>net.bytebuddy</groupId>
94+
<artifactId>byte-buddy-agent</artifactId>
95+
<version>${bytebuddy.version}</version>
96+
</dependency>
8597
<dependency>
8698
<groupId>ch.qos.logback</groupId>
8799
<artifactId>logback-classic</artifactId>
@@ -103,10 +115,20 @@
103115
<groupId>junit</groupId>
104116
<artifactId>junit</artifactId>
105117
</dependency>
118+
<dependency>
119+
<groupId>org.testng</groupId>
120+
<artifactId>testng</artifactId>
121+
<scope>test</scope>
122+
</dependency>
106123
<dependency>
107124
<groupId>net.bytebuddy</groupId>
108125
<artifactId>byte-buddy</artifactId>
109126
</dependency>
127+
<dependency>
128+
<groupId>net.bytebuddy</groupId>
129+
<artifactId>byte-buddy-agent</artifactId>
130+
<scope>test</scope>
131+
</dependency>
110132
<dependency>
111133
<groupId>ch.qos.logback</groupId>
112134
<artifactId>logback-classic</artifactId>
@@ -160,6 +182,11 @@
160182
<artifactId>maven-release-plugin</artifactId>
161183
<version>${release-plugin.version}</version>
162184
</plugin>
185+
<plugin>
186+
<groupId>org.apache.maven.plugins</groupId>
187+
<artifactId>maven-jar-plugin</artifactId>
188+
<version>${jar-plugin.version}</version>
189+
</plugin>
163190
</plugins>
164191
</pluginManagement>
165192

@@ -185,6 +212,9 @@
185212
<plugin>
186213
<groupId>org.apache.maven.plugins</groupId>
187214
<artifactId>maven-surefire-plugin</artifactId>
215+
<configuration>
216+
<argLine>-javaagent:src/test/resources/test-agent.jar</argLine>
217+
</configuration>
188218
</plugin>
189219
<plugin>
190220
<groupId>org.apache.maven.plugins</groupId>
@@ -248,6 +278,19 @@
248278
<goals>deploy</goals>
249279
</configuration>
250280
</plugin>
281+
<plugin>
282+
<groupId>org.apache.maven.plugins</groupId>
283+
<artifactId>maven-jar-plugin</artifactId>
284+
<configuration>
285+
<archive>
286+
<manifestEntries>
287+
<Premain-Class>com.nordstrom.automation.junit.LifecycleHooks</Premain-Class>
288+
<Can-Redefine-Classes>false</Can-Redefine-Classes>
289+
<Can-Retransform-Classes>true</Can-Retransform-Classes>
290+
</manifestEntries>
291+
</archive>
292+
</configuration>
293+
</plugin>
251294
</plugins>
252295
</build>
253296

src/main/java/com/nordstrom/automation/junit/ArtifactCollector.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515

1616
import com.nordstrom.common.file.PathUtils;
1717

18+
/**
19+
* This is the base class for implementations of scenario-specific artifact collectors.
20+
*
21+
* @param <T> scenario-specific artifact type
22+
*/
1823
public class ArtifactCollector<T extends ArtifactType> extends TestWatcher {
1924

2025
private static final Map<Description, List<ArtifactCollector<? extends ArtifactType>>> watcherMap =

0 commit comments

Comments
 (0)