Cucumber-JVM's --format option is deprecated

2,544 views
Skip to first unread message

Robert

unread,
Nov 17, 2014, 11:26:03 AM11/17/14
to cu...@googlegroups.com
I recently updated to Cucumber 1.2.0 and I'm now facing the following warning message

WARNING: Cucumber-JVM's --format option is deprecated. Please use --plugin instead.

Here is the class containing the @CucumberOptions

import cucumber.api.CucumberOptions
import cucumber.api.junit.Cucumber
import org.junit.runner.RunWith

@RunWith(Cucumber.class)
@CucumberOptions(
        features = ["classpath:features/"]
        , monochrome = true
        , format = ["pretty", "json:target/cucumber.json"]
//        , tags = ["~@manual"]
        , glue = ["src/test/groovy/com/xyz/studio/qa/steps"]
)
class RunDnoteITCase {
}

What would be the equivalent of the above, but using the plugin option?

Aslak Hellesøy

unread,
Nov 17, 2014, 11:27:53 AM11/17/14
to cu...@googlegroups.com
replace format with plugin

Aslak 

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robert

unread,
Nov 17, 2014, 12:15:52 PM11/17/14
to cu...@googlegroups.com


On Monday, November 17, 2014 8:27:53 AM UTC-8, Aslak Hellesøy wrote:

On Monday, 17 November 2014 at 16:26, Robert wrote:

I recently updated to Cucumber 1.2.0 and I'm now facing the following warning message

WARNING: Cucumber-JVM's --format option is deprecated. Please use --plugin instead.

Here is the class containing the @CucumberOptions

import cucumber.api.CucumberOptions
import cucumber.api.junit.Cucumber
import org.junit.runner.RunWith

@RunWith(Cucumber.class)
@CucumberOptions(
        features = ["classpath:features/"]
        , monochrome = true
        , format = ["pretty", "json:target/cucumber.json"]
//        , tags = ["~@manual"]
        , glue = ["src/test/groovy/com/xyz/studio/qa/steps"]
)
class RunDnoteITCase {
}

What would be the equivalent of the above, but using the plugin option?
replace format with plugin

Aslak 



Thanks.  Boy, do I feel silly.   That was way too easy.  :-)
Reply all
Reply to author
Forward
0 new messages