IntelliJ cucumber-jvm plugin doesn't run tests

Soroush Hakami

Running a .feature file gives me the following error:

  " >....< cucumber.cli.Main --format org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter --monochrome --glue C:/projects/selenium-parent/selenium/src/test/resources/InformationPage.feature
Testing started at 09:20 ...


    Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
        at com.sun.proxy.$Proxy13.feature(Unknown Source)
        at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:108)
        at cucumber.runtime.Runtime.run(Runtime.java:94)
        at cucumber.runtime.Runtime.run(Runtime.java:82)
        at cucumber.cli.Main.run(Main.java:20)
        at cucumber.cli.Main.main(Main.java:12)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
    Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at cucumber.runtime.RuntimeOptions$1.invoke(RuntimeOptions.java:94)
        ... 11 more
    Caused by: java.lang.NoSuchMethodError: gherkin.formatter.model.Feature.getLine()Ljava/lang/Integer;
        at org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter.feature(CucumberJvmSMFormatter.java:89)
        ... 16 more

    Process finished with exit code 1
    Empty test suite.

The feature file works if I invoke it via a JUnit test. So what why is it reporting Empty test suite?

Feature: Information Page

Scenario: Has expected components
    Given I navigate to the information page
    Then I should see the table component
Soroush Hakami

This was due to me not having the latest cucumber-jvm plugin installed.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

IntelliJ cucumber-jvm plugin doesn't run tests

From Dev

How to run tests filtered with tags with cucumber-jvm and gradle?

From Dev

Cucumber-JVM with Gradle, how to run tests automatically

From Dev

Cucumber-JVM with Gradle, how to run tests automatically

From Java

Gradle doesn't run tests

From Dev

What are the pros and cons to use same session to run your Cucumber-JVM selenium tests in browser?

From Dev

IntelliJ 13.1 angularjs plugin doesn't work

From Dev

Intellij IDEA doesn't see plugin module

From Dev

Rolling back transactions in cucumber-jvm tests

From Dev

Why doesn't Minitest run any tests?

From Dev

TFS 2013 build doesn't run tests

From Dev

Intellij doesn't show run button

From Dev

Intellij doesn't show run button

From Dev

IntelliJ Shorten Command Line for Cucumber Tests

From Dev

Grails Plugin Uploadr doesn't run

From Dev

Maven - Failsafe plugin is not running cucumber tests in parallel

From Dev

Run Cucumber JVM @BeforeClass Without Feature Files

From Dev

Can't run and debug groovy tests under intellij idea

From Dev

IntelliJ IDEA won't run PHPUnit 4.0 tests

From Dev

Debugging mocha tests in IntelliJ: doesn't stop on breakpoints

From Dev

Why doesn't IntelliJ Idea recognize my Spek tests?

From Dev

Cucumber + Maven + TestNG - Tests do not run

From Dev

what order do cucumber tests get run

From Dev

Unable to run Cucumber tests from maven

From Dev

Unable to run Cucumber tests from maven

From Dev

IntelliJ Run Configuration Broken by an Incompatible Plugin I Can't Uninstall?

From Dev

Gradle plugin doesn't work in Intellij IDEA (Calculate task graph)?

From Dev

Static initializer doesn't run during JUnit tests

From Dev

unittest.mock doesn't work when tests are run with pytest

Related Related

  1. 1

    IntelliJ cucumber-jvm plugin doesn't run tests

  2. 2

    How to run tests filtered with tags with cucumber-jvm and gradle?

  3. 3

    Cucumber-JVM with Gradle, how to run tests automatically

  4. 4

    Cucumber-JVM with Gradle, how to run tests automatically

  5. 5

    Gradle doesn't run tests

  6. 6

    What are the pros and cons to use same session to run your Cucumber-JVM selenium tests in browser?

  7. 7

    IntelliJ 13.1 angularjs plugin doesn't work

  8. 8

    Intellij IDEA doesn't see plugin module

  9. 9

    Rolling back transactions in cucumber-jvm tests

  10. 10

    Why doesn't Minitest run any tests?

  11. 11

    TFS 2013 build doesn't run tests

  12. 12

    Intellij doesn't show run button

  13. 13

    Intellij doesn't show run button

  14. 14

    IntelliJ Shorten Command Line for Cucumber Tests

  15. 15

    Grails Plugin Uploadr doesn't run

  16. 16

    Maven - Failsafe plugin is not running cucumber tests in parallel

  17. 17

    Run Cucumber JVM @BeforeClass Without Feature Files

  18. 18

    Can't run and debug groovy tests under intellij idea

  19. 19

    IntelliJ IDEA won't run PHPUnit 4.0 tests

  20. 20

    Debugging mocha tests in IntelliJ: doesn't stop on breakpoints

  21. 21

    Why doesn't IntelliJ Idea recognize my Spek tests?

  22. 22

    Cucumber + Maven + TestNG - Tests do not run

  23. 23

    what order do cucumber tests get run

  24. 24

    Unable to run Cucumber tests from maven

  25. 25

    Unable to run Cucumber tests from maven

  26. 26

    IntelliJ Run Configuration Broken by an Incompatible Plugin I Can't Uninstall?

  27. 27

    Gradle plugin doesn't work in Intellij IDEA (Calculate task graph)?

  28. 28

    Static initializer doesn't run during JUnit tests

  29. 29

    unittest.mock doesn't work when tests are run with pytest

HotTag

Archive