Skip to content

Commit 0ae51ad

Browse files
authored
test: EmbeddingIT for simple app (#92)
1 parent 5223818 commit 0ae51ad

File tree

6 files changed

+143
-261
lines changed

6 files changed

+143
-261
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
- name: Build project
2121
run: mvn install -DskipTests
2222
- name: Run tests
23-
run: mvn test
23+
run: mvn verify # Includes tests and integration tests

maven-plugin/pom.xml

Lines changed: 80 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0"
2-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

66
<parent>
@@ -27,7 +27,6 @@
2727
<artifactId>classport-commons</artifactId>
2828
<version>${project.parent.version}</version>
2929
</dependency>
30-
3130
<!-- Embedding -->
3231
<dependency>
3332
<groupId>org.ow2.asm</groupId>
@@ -80,53 +79,96 @@
8079
<version>2.2.1</version>
8180
<scope>provided</scope>
8281
</dependency>
83-
<dependency>
84-
<groupId>org.junit.jupiter</groupId>
85-
<artifactId>junit-jupiter-api</artifactId>
86-
<version>6.0.1</version>
87-
<scope>test</scope>
88-
</dependency>
89-
<dependency>
90-
<groupId>org.junit.jupiter</groupId>
91-
<artifactId>junit-jupiter-engine</artifactId>
92-
<version>6.0.1</version>
93-
<scope>test</scope>
94-
</dependency>
95-
96-
97-
<dependency>
98-
<groupId>org.hamcrest</groupId>
99-
<artifactId>hamcrest</artifactId>
100-
<version>3.0</version>
101-
<scope>test</scope>
102-
</dependency>
103-
104-
<dependency>
105-
<groupId>org.apache.maven.shared</groupId>
106-
<artifactId>maven-invoker</artifactId>
107-
<version>3.3.0</version>
108-
</dependency>
109-
110-
<dependency>
111-
<groupId>org.twdata.maven</groupId>
112-
<artifactId>mojo-executor</artifactId>
113-
<version>2.4.1</version>
114-
<scope>test</scope>
115-
</dependency>
116-
11782

83+
<!-- Test dependencies -->
84+
<dependency>
85+
<groupId>io.github.project</groupId>
86+
<artifactId>classport-analyser</artifactId>
87+
<version>${project.parent.version}</version>
88+
<scope>test</scope>
89+
</dependency>
90+
<dependency>
91+
<groupId>org.junit.jupiter</groupId>
92+
<artifactId>junit-jupiter-api</artifactId>
93+
<version>6.0.1</version>
94+
<scope>test</scope>
95+
</dependency>
96+
<dependency>
97+
<groupId>org.junit.jupiter</groupId>
98+
<artifactId>junit-jupiter-engine</artifactId>
99+
<version>6.0.1</version>
100+
<scope>test</scope>
101+
</dependency>
102+
<dependency>
103+
<groupId>com.soebes.itf.jupiter.extension</groupId>
104+
<artifactId>itf-assertj</artifactId>
105+
<version>0.13.1</version>
106+
<scope>test</scope>
107+
</dependency>
108+
<dependency>
109+
<groupId>com.soebes.itf.jupiter.extension</groupId>
110+
<artifactId>itf-jupiter-extension</artifactId>
111+
<version>0.13.1</version>
112+
<scope>test</scope>
113+
</dependency>
114+
<dependency>
115+
<groupId>org.hamcrest</groupId>
116+
<artifactId>hamcrest</artifactId>
117+
<version>3.0</version>
118+
<scope>test</scope>
119+
</dependency>
118120
</dependencies>
119121

120122
<build>
121123
<plugins>
124+
<!-- ITF Maven Plugin -->
125+
<plugin>
126+
<groupId>com.soebes.itf.jupiter.extension</groupId>
127+
<artifactId>itf-maven-plugin</artifactId>
128+
<version>0.13.1</version>
129+
<executions>
130+
<execution>
131+
<id>installing</id>
132+
<phase>pre-integration-test</phase>
133+
<goals>
134+
<goal>install</goal>
135+
<goal>resources-its</goal>
136+
</goals>
137+
</execution>
138+
</executions>
139+
</plugin>
140+
<plugin>
141+
<artifactId>maven-failsafe-plugin</artifactId>
142+
<executions>
143+
<execution>
144+
<goals>
145+
<goal>integration-test</goal>
146+
<goal>verify</goal>
147+
</goals>
148+
</execution>
149+
</executions>
150+
</plugin>
122151
<plugin>
123152
<groupId>org.apache.maven.plugins</groupId>
124153
<artifactId>maven-surefire-plugin</artifactId>
125154
</plugin>
126155
<plugin>
127156
<groupId>org.apache.maven.plugins</groupId>
128157
<artifactId>maven-compiler-plugin</artifactId>
129-
158+
</plugin>
159+
<plugin>
160+
<groupId>org.apache.maven.plugins</groupId>
161+
<artifactId>maven-resources-plugin</artifactId>
162+
<version>3.4.0</version>
163+
<executions>
164+
<execution>
165+
<id>copy-resources</id>
166+
<phase>process-test-resources</phase>
167+
<goals>
168+
<goal>resources</goal>
169+
</goals>
170+
</execution>
171+
</executions>
130172
</plugin>
131173
<plugin>
132174
<groupId>org.apache.maven.plugins</groupId>

maven-plugin/src/test/java/io/github/project/classport/plugin/EmbeddingMojoTest.java

Lines changed: 0 additions & 222 deletions
This file was deleted.

0 commit comments

Comments
 (0)