Discussion:
[Cucumber] Unable to launch Cucumber test from Idea
константин константинов
2018-07-30 13:29:09 UTC
Permalink
Hi, guys!

Please help! I can't run feature file with Idea.

My environment:

Idea 2018.2 (with all latest update);

JDK 1.8.0_172

Gradle 3.5.

Latest Cucumber plugin from Idea

Dependencies:


testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'io.appium', name: 'java-client', version: '5.0.2'
compile group: 'io.qameta.allure', name: 'allure-junit4', version:
'2.6.0'
compile group: 'org.assertj', name: 'assertj-core', version: '3.9.1'

testCompile group: 'io.cucumber', name: 'cucumber-junit', version:
'3.0.2'
testCompile group: 'io.cucumber', name: 'cucumber-java', version:
'3.0.2'.



Structure:

src - > main - > BaseClass (core of my Appium/Selenium project)

src - > test - > cucumbersteps:
- > MyStepDefs class
- > RunnerTest

src - > test - > resources - > cucumbersteps:
- > open_day.feature


When i launch class RunnerTest with this command: *gradlew clean test
--tests ru.cucumbersteps.RunnerTest*, my tests is passing .
When i launch tests with Idea - Idea returns error

Configuration:

*main class*: cucumber.api.cli.Main
*glue*: ru.fsg.cucumbersteps
*arguments*: --name "^Open day$"
*classpath*: Junit_pom_test

Idea returns:

*Failed scenarios:*
*1 Scenarios (1 failed)*
*6 Steps (1 failed, 3 skipped, 2 passed)*
*0m1,001s*
*.F---*

*java.lang.NullPointerException*


Thanks
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Oleg Manzhos
2018-07-30 19:43:53 UTC
Permalink
Hey! Could you please share your runner class?

Thanks, Oleg
Post by константин константинов
Hi, guys!
Please help! I can't run feature file with Idea.
Idea 2018.2 (with all latest update);
JDK 1.8.0_172
Gradle 3.5.
Latest Cucumber plugin from Idea
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'io.appium', name: 'java-client', version: '5.0.2'
compile group: 'io.qameta.allure', name: 'allure-junit4', version: '2.6.0'
compile group: 'org.assertj', name: 'assertj-core', version: '3.9.1'
testCompile group: 'io.cucumber', name: 'cucumber-junit', version: '3.0.2'
testCompile group: 'io.cucumber', name: 'cucumber-java', version: '3.0.2'.
src - > main - > BaseClass (core of my Appium/Selenium project)
- > MyStepDefs class
- > RunnerTest
- > open_day.feature
When i launch class RunnerTest with this command: gradlew clean test --tests ru.cucumbersteps.RunnerTest, my tests is passing .
When i launch tests with Idea - Idea returns error
main class: cucumber.api.cli.Main
glue: ru.fsg.cucumbersteps
arguments: --name "^Open day$"
classpath: Junit_pom_test
1 Scenarios (1 failed)
6 Steps (1 failed, 3 skipped, 2 passed)
0m1,001s
.F---
java.lang.NullPointerException
Thanks
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit https://groups.google.com/d/optout.
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...