How to run @RunWith (Cucumber.class) step by step

I am working on a BDD file and am trying to verify using JUnit.

I want to use the RunCukesTest class with @RunWith (Cucumber.class).

I searched many sites on how to set requirements, but I could not find any website that explains this briefly, step by step.

Could you explain to me briefly, step by step, how can I run my test?

package test.newtest;

import cucumber.junit.Cucumber;
import org.junit.runner.RunWith;

@RunWith(Cucumber.class)
public class RunCukesTest {
}
+4
source share
2 answers

Cucumber , RunCucksTest. (-), , "features" @CucumberOptions ( RunCucksTest). E. g.,

@CucumberOptions(strict = true,  features = {
        "src/test/resources/cucumber/",
    },monochrome=true)
+1
  • ,
  • Test Runner
  • Debug JUnit.
0

All Articles