How to disable cucumber message in eclipse

Viewed 9385

How to disable this message:

┌───────────────────────────────────────────────────────────────────────────────────┐
│ Share your Cucumber Report with your team at https://reports.cucumber.io          │
│ Activate publishing with one of the following:                                    │
│                                                                                   │
│ src/test/resources/cucumber.properties:          cucumber.publish.enabled=true    │
│ src/test/resources/junit-platform.properties:    cucumber.publish.enabled=true    │
│ Environment variable:                            CUCUMBER_PUBLISH_ENABLED=true    │
│ JUnit:                                           @CucumberOptions(publish = true) │
│                                                                                   │
│ More information at https://reports.cucumber.io/docs/cucumber-jvm                 │
│                                                                                   │
│ Disable this message with one of the following:                                   │
│                                                                                   │
│ src/test/resources/cucumber.properties:          cucumber.publish.quiet=true      │
│ src/test/resources/junit-platform.properties:    cucumber.publish.quiet=true      │
└───────────────────────────────────────────────────────────────────────────────────┘

Click here

What steps to take?

4 Answers

In the message it is saying as below:

Disable this message with one of the following:

  • src/test/resources/cucumber.properties: cucumber.publish.quiet=true
  • src/test/resources/junit-platform.properties: cucumber.publish.quiet=true

For me it was disabled after doing both of the above

create a new cucumber.properties file under rc/test/resources/ and then add this line cucumber.publish.quiet:true

I've got the same problem here and I solved it by following the steps in the message:

  1. Creating cucumber.properties and junit-platform.properties in "src/test/resources" on the Package Explorer;
  2. Adding the line "cucumber.publish.quiet=true" to each one of them.

For disabling the cucumber publish message in console,reference for console Message.

Create a file named "cucumber.properties" in src/test/resources file path(which by default gets created when we create a new project in eclipse). Mention cucumber.publish.quite=true in the properties file. That's it now you won't see that cucumber content in the console.

reference image.

Related