File tree Expand file tree Collapse file tree 6 files changed +15
-18
lines changed
consumer-app/src/test/java/io/dapr/springboot/examples/consumer
worker-one/src/test/java/io/dapr/springboot/examples/workerone
worker-two/src/test/java/io/dapr/springboot/examples/workertwo Expand file tree Collapse file tree 6 files changed +15
-18
lines changed Original file line number Diff line number Diff line change 30
30
distribution : ' temurin'
31
31
java-version : ${{ env.JDK_VER }}
32
32
- name : Run tests
33
- run : ./mvnw clean install -B -q
33
+ run : ./mvnw clean install -B -q -DskipITs=true
34
34
- name : Codecov
35
35
36
36
- name : Upload test report for sdk
Original file line number Diff line number Diff line change 42
42
<spotbugs .fail>true</spotbugs .fail>
43
43
<spotbugs .exclude.filter.file>../spotbugs-exclude.xml</spotbugs .exclude.filter.file>
44
44
<argLine >--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED</argLine >
45
- <failsafe .version>3.2.2 </failsafe .version>
45
+ <failsafe .version>3.5.3 </failsafe .version>
46
46
<surefire .version>3.2.2</surefire .version>
47
47
<junit-bom .version>5.11.4</junit-bom .version>
48
48
<snakeyaml .version>2.0</snakeyaml .version>
Original file line number Diff line number Diff line change 37
37
@ SpringBootTest (classes = {TestConsumerApplication .class , DaprTestContainersConfig .class ,
38
38
ConsumerAppTestConfiguration .class , DaprAutoConfiguration .class },
39
39
webEnvironment = SpringBootTest .WebEnvironment .DEFINED_PORT )
40
- class ConsumerAppTests {
40
+ class ConsumerAppIT {
41
41
42
42
private static final String SUBSCRIPTION_MESSAGE_PATTERN = ".*app is subscribed to the following topics.*" ;
43
43
Original file line number Diff line number Diff line change 55
55
<plugin >
56
56
<groupId >org.apache.maven.plugins</groupId >
57
57
<artifactId >maven-failsafe-plugin</artifactId >
58
- <version >3.2.2</version >
59
58
<configuration >
60
59
<classesDirectory >${project.build.outputDirectory} </classesDirectory >
61
60
</configuration >
62
61
</plugin >
62
+ <plugin >
63
+ <groupId >org.jacoco</groupId >
64
+ <artifactId >jacoco-maven-plugin</artifactId >
65
+ <configuration >
66
+ <excludes >
67
+ <!-- Exclude full package from test coverage -->
68
+ <exclude >**/*io/dapr/springboot/examples/**</exclude >
69
+ </excludes >
70
+ </configuration >
71
+ </plugin >
63
72
</plugins >
64
73
</build >
65
74
</project >
Original file line number Diff line number Diff line change 13
13
14
14
package io .dapr .springboot .examples .workerone ;
15
15
16
- import io .dapr .client .DaprClient ;
17
- import io .dapr .testcontainers .DaprContainer ;
18
16
import io .restassured .RestAssured ;
19
- import io .restassured .http .ContentType ;
20
17
import org .junit .jupiter .api .BeforeEach ;
21
18
import org .junit .jupiter .api .Test ;
22
- import org .springframework .beans .factory .annotation .Autowired ;
23
19
import org .springframework .boot .test .context .SpringBootTest ;
24
20
25
- import java .io .IOException ;
26
-
27
21
import static io .restassured .RestAssured .given ;
28
22
import static org .awaitility .Awaitility .await ;
29
23
import static org .hamcrest .CoreMatchers .is ;
30
24
import static org .junit .jupiter .api .Assertions .assertEquals ;
31
25
32
26
@ SpringBootTest (classes = {TestWorkerOneApplication .class , DaprTestContainersConfig .class },
33
27
webEnvironment = SpringBootTest .WebEnvironment .DEFINED_PORT )
34
- class WorkerOneAppTests {
28
+ class WorkerOneAppIT {
35
29
36
30
@ BeforeEach
37
31
void setUp () {
Original file line number Diff line number Diff line change 13
13
14
14
package io .dapr .springboot .examples .workertwo ;
15
15
16
- import io .dapr .client .DaprClient ;
17
- import io .dapr .testcontainers .DaprContainer ;
18
16
import io .restassured .RestAssured ;
19
- import io .restassured .http .ContentType ;
20
17
import org .junit .jupiter .api .BeforeEach ;
21
18
import org .junit .jupiter .api .Test ;
22
- import org .springframework .beans .factory .annotation .Autowired ;
23
19
import org .springframework .boot .test .context .SpringBootTest ;
24
20
25
- import java .io .IOException ;
26
-
27
21
import static io .restassured .RestAssured .given ;
28
22
import static org .awaitility .Awaitility .await ;
29
23
import static org .hamcrest .CoreMatchers .is ;
30
24
import static org .junit .jupiter .api .Assertions .assertEquals ;
31
25
32
26
@ SpringBootTest (classes = {TestWorkerTwoApplication .class , DaprTestContainersConfig .class },
33
27
webEnvironment = SpringBootTest .WebEnvironment .DEFINED_PORT )
34
- class WorkerTwoAppTests {
28
+ class WorkerTwoAppIT {
35
29
36
30
@ BeforeEach
37
31
void setUp () {
You can’t perform that action at this time.
0 commit comments