cucumber-junit

No tasks available when executing JUnit runner class

廉价感情. 提交于 2021-02-17 21:10:16
问题 I am trying to run Cucumber feature files in IntelliJ. Cucumber Options is pointing to the right folder, but I get the "No tasks available" notification when trying to execute the JUnit runner class. What am I doing wrong? Here is my build.gradle : plugins { id 'java' } sourceCompatibility = 1.8 apply plugin: 'java' repositories { mavenCentral() } compileJava.options.encoding = "UTF-8" dependencies { compile 'org.codehaus.groovy:groovy-all:2.3.11' testCompile group: 'junit', name: 'junit',

No tasks available when executing JUnit runner class

≡放荡痞女 提交于 2021-02-17 21:10:12
问题 I am trying to run Cucumber feature files in IntelliJ. Cucumber Options is pointing to the right folder, but I get the "No tasks available" notification when trying to execute the JUnit runner class. What am I doing wrong? Here is my build.gradle : plugins { id 'java' } sourceCompatibility = 1.8 apply plugin: 'java' repositories { mavenCentral() } compileJava.options.encoding = "UTF-8" dependencies { compile 'org.codehaus.groovy:groovy-all:2.3.11' testCompile group: 'junit', name: 'junit',

possible values for @CucumberOptions(plugin = …)

*爱你&永不变心* 提交于 2021-02-10 05:47:11
问题 I am using @CucumberOptions(plugin = {"pretty"} for test report in cucumber but the default colors for this are really bad..so I am looking to change the font color in output report. Anyone as any idea..how proceed further? 回答1: For console colors see Console-Colours. For reports you can specify that the report be output in JSON and then pass the generated JSON to a custom formatter. See Custom-Formatters. BTW, this is how TeamCity creates its reports. Here is an example of generating both

How to set sauce-labs job result as pass or fail using karate?

♀尐吖头ヾ 提交于 2021-01-27 18:54:57
问题 I'm trying to run a simple test scenario on sauce-labs, but the issue is that sauce-labs doesn't identify the test-status as passed or failed on its own. I've gone through multiple solutions but couldn't make any of them work. I would love to know if we can do something in the feature file rather than doing something externally if possible. Following are my feature and java files. Feature File Java File Any help will be appreciated. I'm a JAVA newbie & just starting on the Karate Framework