File tree Expand file tree Collapse file tree
src/test/java/com/baeldung/rest/cucumber Expand file tree Collapse file tree Original file line number Diff line number Diff line change 148148 <groupId >org.apache.maven.plugins</groupId >
149149 <artifactId >maven-surefire-plugin</artifactId >
150150 <version >${maven-surefire-plugin.version} </version >
151+ <configuration >
152+ <excludes >
153+ <exclude >**/*IntegrationTest.java</exclude >
154+ <exclude >**/*LiveTest.java</exclude >
155+ </excludes >
156+ </configuration >
151157 </plugin >
152158
153159 </plugins >
154160
155161 </build >
156162
163+ <profiles >
164+ <profile >
165+ <id >integration</id >
166+ <build >
167+ <plugins >
168+ <plugin >
169+ <groupId >org.apache.maven.plugins</groupId >
170+ <artifactId >maven-surefire-plugin</artifactId >
171+ <executions >
172+ <execution >
173+ <phase >integration-test</phase >
174+ <goals >
175+ <goal >test</goal >
176+ </goals >
177+ <configuration >
178+ <excludes >
179+ <exclude >**/*UnitTest.java</exclude >
180+ </excludes >
181+ <includes >
182+ <include >**/*IntegrationTest.java</include >
183+ <exclude >**/*LiveTest.java</exclude >
184+ </includes >
185+ </configuration >
186+ </execution >
187+ </executions >
188+ <configuration >
189+ <systemPropertyVariables >
190+ <test .mime>json</test .mime>
191+ </systemPropertyVariables >
192+ </configuration >
193+ </plugin >
194+ </plugins >
195+ </build >
196+ </profile >
197+ </profiles >
198+
157199 <properties >
158200 <!-- marshalling -->
159201 <jackson .version>2.7.8</jackson .version>
Original file line number Diff line number Diff line change 66
77@ RunWith (Cucumber .class )
88@ CucumberOptions (features = "classpath:Feature" )
9- public class CucumberTest {
9+ public class CucumberIntegrationTest {
1010}
You can’t perform that action at this time.
0 commit comments