Skip to content

Commit

Permalink
Spring 3.3 / Karate 1.5 / JDK 17
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Mc Carthy committed Aug 30, 2024
1 parent 3c3abcf commit acce0b0
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 36 deletions.
14 changes: 0 additions & 14 deletions karate-basic/src/test/java/cmccarthyirl/basic/BasicKarateTest.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
import cmccarthyirl.basic.config.AbstractTestDefinition;
import com.intuit.karate.junit5.Karate;

import java.util.Objects;

public class BasicParallelKarateTest extends AbstractTestDefinition {

@Karate.Test
Karate basicKarateTestAll() {
return Karate.run(Objects.requireNonNull(getClass().getClassLoader().getResource("cmccarthyirl/basic")).getPath());
Karate e2eKarateTest() {
return Karate.run("E2ETest").relativeTo(getClass()).tags("~@ignore");
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
import cmccarthyirl.dynamic.config.AbstractTestDefinition;
import com.intuit.karate.junit5.Karate;

import java.util.Objects;

public class DynamicParallelKarateTest extends AbstractTestDefinition {

@Karate.Test
Karate dynamicKarateTest() {
return Karate.run(Objects.requireNonNull(getClass().getClassLoader().getResource("cmccarthyirl/dynamic")).getPath()).tags("~@ignore");
Karate reuseKarateTest() {
return Karate.run("ReUseFeaturesTests").relativeTo(getClass()).tags("~@ignore");
}
}
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
<module>local-server</module>
<module>karate-basic</module>
<module>karate-dynamic</module>
<module>suites</module>
<module>karate-robot</module>
</modules>

Expand Down
39 changes: 39 additions & 0 deletions suites/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<artifactId>spring-karate-test-harness</artifactId>
<groupId>com.cmccarthy.karate</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>suites</artifactId>

<dependencies>
<dependency>
<groupId>com.cmccarthy.karate</groupId>
<artifactId>common</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.cmccarthy.karate</groupId>
<artifactId>local-server</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.cmccarthy.karate</groupId>
<artifactId>karate-basic</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>test</scope>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>com.cmccarthy.karate</groupId>
<artifactId>karate-dynamic</artifactId>
<version>1.0-SNAPSHOT</version>
<type>test-jar</type>
</dependency>
</dependencies>
</project>
11 changes: 11 additions & 0 deletions suites/src/test/java/cmccarthyirl/suites/JUnitSuiteTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package cmccarthyirl.suites;

import cmccarthyirl.basic.BasicParallelKarateTest;
import cmccarthyirl.basic.config.AbstractTestDefinition;
import cmccarthyirl.dynamic.DynamicParallelKarateTest;
import org.junit.platform.suite.api.*;

@Suite
@SelectClasses({DynamicParallelKarateTest.class, BasicParallelKarateTest.class})
public class JUnitSuiteTest extends AbstractTestDefinition {
}
Empty file.
Empty file.

0 comments on commit acce0b0

Please sign in to comment.