@cucumber.junit.api.Cucumber.Options
is deprecated in favour of @cucumber.api.Options
(#549 Aslak Hellesøy)package dental.delta.definitions;
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
//@RunWith(Parameterized.class)
@Cucumber.Options(
features = {"src/dental/delta/features/GetQuoteCompact.feature"},
glue = {"dental.delta.definitions"},
format = {"pretty",
"html:target/cucumber-html-report",
// "json-pretty:target/cucumber-report.json",
"junit:target/cucumber-junit-report/allcukes.xml"},
tags = {"@Smoke"}
//name = {""}
)
public class CucumberTestRunner {
}
I have just upgraded to the latest versions of cucumber, but appear to have some issues in my cucumber setup file. My option @Cucumber.Options appears depricated, and is causing a run failure. I read through the release notes, specifically:
- [JUnit/Core]
@cucumber.junit.api.Cucumber.Options
is deprecated in favour of@cucumber.api.Options
(#549 Aslak Hellesøy)but have no success re-referencing, and looked through the jars for a new option. I now can no longer run anything. Can anyone please advise. Below is my code, and error messages I am receiving, and versions:Jars:
- cucumber-core-1.1.5.jar
- cucumber-html-0.2.3.jar
- cucumber-java-1.1.5.jar
- cucumber-junit-1.1.5.jar
- gherkin-2.12.1.jar
Hook Code:
package dental.delta.definitions;
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
//@RunWith(Parameterized.class)
@Cucumber.Options(
--
-- Rules --
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Cukes" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cukes/XGwW5qowMbc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Mon, Sep 16, 2013 at 10:29 AM, Max Saperstone <max.sap...@coveros.com> wrote:
I have just upgraded to the latest versions of cucumber, but appear to have some issues in my cucumber setup file. My option @Cucumber.Options appears depricated, and is causing a run failure. I read through the release notes, specifically:
- [JUnit/Core]
@cucumber.junit.api.Cucumber.Options
is deprecated in favour of@cucumber.api.Options
(#549 Aslak Hellesøy)but have no success re-referencing, and looked through the jars for a new option. I now can no longer run anything. Can anyone please advise. Below is my code, and error messages I am receiving, and versions:Jars:
- cucumber-core-1.1.5.jar
- cucumber-html-0.2.3.jar
- cucumber-java-1.1.5.jar
- cucumber-junit-1.1.5.jar
- gherkin-2.12.1.jar
Hook Code:
package dental.delta.definitions;
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
//@RunWith(Parameterized.class)
@Cucumber.Options(
Changed to @CucumberOptions, and fixed my imports. Now getting the same error, without the deprecation message