Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

232
Views
Cucumber Java - JUnit set monochrome over command line

What is the best way to disable color output for my Cucumber JUnit tests when they are run by a build machine?
It is possible to set monochrome = true in the @CucumberOptions annotation. The problem with that is, running the Tests locally should contain Color.

Setting -Dcucumber.options.monochrome=true is not working, for whatever reason.

Is there any way to set/override this from the command line?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Found the solution.
As stated here https://cucumber.io/docs/cucumber/api/#list-configuration-options
Providing -Dcucumber.ansi-colors.disabled=true solves the issue.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!