Я просматривал документацию по каратэ: https://github.com/intuit/karate#command-line
И мои файлы выглядят следующим образом:
Класс бегуна:
import org.junit.runner.RunWith;
import com.intuit.karate.junit4.Karate;
import cucumber.api.CucumberOptions;
@RunWith(Karate.class)
@CucumberOptions(features = "classpath:feature/country.feature")
public class APITest {}
Поместите это вмой build.gradle:
test {
// pull cucumber options into the cucumber jvm
systemProperty "cucumber.options", System.properties.getProperty("cucumber.options")
// pull karate options into the jvm
systemProperty "karate.env", System.properties.getProperty("karate.env")
// ensure tests are always run
outputs.upToDateWhen { false }
}
И я пытаюсь запустить gradle следующим образом:
./gradlew test -Dtest=APITest
Но я получаю этот ответ:
Rafaels-MacBook-Pro:TestProject rafaelpaz$ ./gradlew test -Dtest=APITest
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:compileTestJava
:processTestResources UP-TO-DATE
:testClasses
:test
Однако я не вижу, прошли ли мои тесты или нет.Что я делаю не так?
Версия Gradle: 2.14.1