Вы можете проверить репозиторий на https://github.com/marcotenorioNTT/auto ... -framework
Я использовал этот плагин:
Код: Выделить всё
org.apache.maven.plugins
maven-surefire-plugin
3.0.0-M5
Код: Выделить всё
org.apache.maven.plugins
maven-surefire-plugin
3.5.1
**/*Test.java
**/*Tests.java
**/Cucumber*.java
Буду признателен за вашу помощь!
Я собираюсь установить свой тест огурца с тестом maven, чтобы создать предварительный перехват, проверяющий тест.
--- Редактировать:
Я пытался установить JUnit 5 но теперь огурец не находит мои функции.
Я пробовал использовать движок огурца-junit-платформы, но он не находит мои функции.
Это мой огуречный бегун прямо сейчас:
Код: Выделить всё
package org.example;
import io.cucumber.spring.CucumberContextConfiguration;
import org.junit.platform.suite.api.ConfigurationParameter;
import org.junit.platform.suite.api.IncludeEngines;
import org.junit.platform.suite.api.SelectClasspathResource;
import org.junit.platform.suite.api.Suite;
import org.example.api.Application;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import static io.cucumber.junit.platform.engine.Constants.GLUE_PROPERTY_NAME;
@CucumberContextConfiguration
@Suite
@IncludeEngines("cucumber")
@SelectClasspathResource("features")
@SpringBootTest(classes = Application.class)
@ConfigurationParameter(key = GLUE_PROPERTY_NAME, value = "org.example.steps.specific")
public class CucumberRunner {}
Я пытался установить src/test/resources/features вместо функций.
Подробнее здесь: https://stackoverflow.com/questions/791 ... o-mvn-test