35

I have already:

  • Downloaded the Cucumber Java, Gherkin plugin
  • I already have the steps and features directories:

My directory structure looks like this:

- test
    - java
        - features
            - featureSet1
                - oneFeature.feature
                - anotherFeature.feature
            - featuresSet2
                - twoFeature.feature
            - CucumberTests.java
        - steps
                - step1.java
                - step2.java

Under the features folder, I have a file called, CucumberTests.java. I'm able to run the tests via mvn test but the red error marks reallllly annoy me.

I have these tags in CucumberTest.java, which is supposed to run the tests:

@RunWith(Cucumber.class)
@CucumberOptions(plugin = { "pretty", "html:target/surefire-
    reports/cucumber", "json:target/surefire-
    reports/cucumberOriginal.json"},
             features = {"src/test/java/features/featuresSet1",
                         "src/test/java/features/featuresSet2",
                         },
             tags = {"~@ignore"},
             glue = {"steps"})
curious
  • 1,504
  • 5
  • 18
  • 32
junecng
  • 525
  • 1
  • 4
  • 12

1 Answers1

132

The issue is from Substeps IntelliJ Plugin that IntelliJ suggests you install when it locates a .feature file inside your project.

enter image description here

Just ignore this extension when it pops up or uninstall if you already have it.

Cucumber for Java and Gherkin should be enough.

Daniel Fintinariu
  • 2,733
  • 1
  • 14
  • 16