Im using the below structure in testcases for junit4, now im migration to junit5 couldnt find a way to replace, please help.
@RunWith(Karate.class)
@CucumberOptions(
junit = {..},
features = "..",
plugin = {"..."},
glue = {"..."},
tags = {"...."})
Aaccording to junit5 @RunWith should be replace with @Extendwith but when i used @ExtendWith(karate.class) its giving error.
my testclass:
import KarateTest.utils.WiremockRunner;
import com.intuit.karate.junit4.Karate;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
@Disabled
@RunWith(Karate.class)
@CucumberOptions(
junit = {".."},
features = "...",
plugin = {"..."},
glue = {"s.."},
tags = {"..", "...", "..","..."})
public class HT {
private static final WiremockRunner wiremock = new WiremockRunner();
@BeforeAll
public static void beforeClass() throws Exception {
wiremock.startWiremock();
Application.main(new String[] {"--spring.profiles.active=sb-vk"});
}
@AfterAll
public static void tearDown() throws Exception {
wiremock.stopWiremock();
}
}