Skip to content

Commit 1f8e37c

Browse files
authored
Move K6 tests to JUnit Jupiter (#10742)
1 parent 3f517a1 commit 1f8e37c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

modules/k6/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,12 @@ description = "Testcontainers :: k6"
33
dependencies {
44
api project(':testcontainers')
55

6+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'
7+
8+
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
69
testImplementation 'org.assertj:assertj-core:3.27.4'
710
}
11+
12+
test {
13+
useJUnitPlatform()
14+
}

modules/k6/src/test/java/org/testcontainers/k6/K6ContainerTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
package org.testcontainers.k6;
22

3-
import org.junit.Test;
3+
import org.junit.jupiter.api.Test;
44
import org.testcontainers.containers.output.WaitingConsumer;
55
import org.testcontainers.utility.MountableFile;
66

77
import java.util.concurrent.TimeUnit;
88

99
import static org.assertj.core.api.Assertions.assertThat;
1010

11-
public class K6ContainerTests {
11+
class K6ContainerTests {
1212

1313
@Test
14-
public void k6StandardTest() throws Exception {
14+
void k6StandardTest() throws Exception {
1515
try (
1616
// standard_k6 {
1717
K6Container container = new K6Container("grafana/k6:0.49.0")

0 commit comments

Comments
 (0)