Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cucumber.publish.quiet=true not working #167

Open
mjaggard opened this issue Dec 10, 2020 · 1 comment
Open

cucumber.publish.quiet=true not working #167

mjaggard opened this issue Dec 10, 2020 · 1 comment

Comments

@mjaggard
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant