cukes icon indicating copy to clipboard operation
cukes copied to clipboard

cucumber.publish.quiet=true not working

Open mjaggard opened this issue 4 years ago • 1 comments

Describe the bug When I try to remove the advert by setting cucumber.publish.quiet=true in my cucumber.properties file I have other issues that I don't understand.

To Reproduce Steps to reproduce the behavior:

  1. Create a cukes-rest example project.
  2. Create cucumber.properties and insert cucumber.publish.quiet=true
  3. Run tests
  4. See the following error
More than one Cucumber ObjectFactory was found in the classpath

Found: lv.ctco.cukes.core.internal.di.SingletonObjectFactory, io.cucumber.guice.GuiceFactory

Expected behavior The advert banner should be suppressed.

Context & Motivation

I'm attempting to get my new team to use Cucumber REST tests and the advert is a distraction.

Your Environment

  • Versions used 6.9.0
  • Operating System and version Mac Big Sur
  • Build tool Gradle 6.7.1

Additional context If I attempt to fix the problem using cucumber.object-factory=io.cucumber.guice.GuiceFactory I get the following error

      com.google.inject.ConfigurationException: Guice configuration errors:

1) No implementation for java.util.Set<lv.ctco.cukes.core.extension.CukesPlugin> was bound.

mjaggard avatar Dec 10 '20 23:12 mjaggard

I've just found that I can fix it using

cucumber.publish.quiet=true
cucumber.object-factory=lv.ctco.cukes.core.internal.di.SingletonObjectFactory

I think better documentation is needed to show that cucumber.properties cannot be overridden despite what the advert banner message says.

mjaggard avatar Dec 10 '20 23:12 mjaggard