Replies: 2 comments
-
What you're doing should work. Do make sure that your library has the classes in |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, it is exactly located in 'src/main' and 'src/test' is empty. I'll clarify: runner class located in test project, but configuration class located in library. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
my env: Java+Spring+Cucumber
what I want: I need move all steps definition to the shred library. It means, that In my test project I have only cucumber's features, properties and runner class:
what I do: I create library with step's definition classes and configuration class and include it with maven in my test project. Configuration class in library located in 'com.runner.project.test' package.
what I get: I run testcase ('.feature') and it runs successfully (RM and press Run on the testcase). Than I run 'RunnerTest.class' and take trouble: 'io.cucumber.core.backend.CucumberBackendException: Please annotate a glue class with some context configuration.'
what I try: I relocate my configuration class from library to the my test project. Than I get trouble with step's definition: 'io.cucumber.junit.platform.engine.UndefinedStepException: The step 'Step name' and 12 other step(s) are undefined.. But if I ctrl+LM on step in testcase '.feature', than I'm falling to the definition step.'
question: How I can linked RunnerTest.class and configuration class located in library or linker configuration class with stepdefinition classes?
Configuration class:
Beta Was this translation helpful? Give feedback.
All reactions