Я использую Cucumber + Gradle в Intellij и не могу понять, как отлаживать, используя точки останова.Я попробовал предложения других пользователей, но ни одно из них не помогло мне.Кто-нибудь нашел легкий способ сделать это?Ниже мой файл build.gradle.
apply plugin: 'java'
apply plugin: 'idea'
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',
'--plugin', 'json:build/reports/cucumber-report.json',
'--plugin', 'html:build/reports/cucumber-report.html',
'--glue', 'stepDefinitions',
'src/test/java']
systemProperty "cucumber.options",
System.getProperty("cucumber.options")
systemProperty "url", System.properties.getProperty("url")
systemProperty "environment",
System.properties.getProperty("environment")
}
}
}