Я пытаюсь запустить файл функций огурца в Eclipse, но получаю следующую ошибку. "Ошибка: не удалось найти или загрузить основной класс cucumber.api.cli.Main"
Код Gradle ( build.gradle )
apply plugin: 'java'
configurations {
cucumberRuntime {
extendsFrom testRuntime
}
}
task cucumber() {
dependsOn assemble, compileTestJava
doLast {
javaexec {
main = "cucumber.api.cli.Main"
classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
args = ['--plugin', 'pretty', '--glue', 'gradle.cucumber', 'src/test/resources']
}
}
}
dependencies {
testCompile 'io.cucumber:cucumber-java:3.0.2'
testCompile 'io.cucumber:cucumber-junit:3.0.2'
testCompile 'junit:junit:4.12'
}
repositories {
mavenCentral()
}
Файл объектов ( add.Feature )
@tag
Feature: Title of your feature
I want to use this template for my feature file
@tag1
Scenario: Title of your scenario
Given I have the calculator
When I enter input1 and input2
And I press add button
Then I get output
Я щелкаю правой кнопкой мыши по файлу объектов.Затем выберите запустить как и нажав на функцию огурца.Заранее спасибо.