Skip to content

Set FORCE_COLOR based on deprecated format option#2769

Draft
davidjgoss wants to merge 3 commits intomainfrom
colors-enabled-env-var
Draft

Set FORCE_COLOR based on deprecated format option#2769
davidjgoss wants to merge 3 commits intomainfrom
colors-enabled-env-var

Conversation

@davidjgoss
Copy link
Member

@davidjgoss davidjgoss commented Mar 22, 2026

🤔 What's changed?

When we detect a value has been set (either true or false) for the colorsEnabled format option, set the FORCE_COLOR environment variable to the corresponding value.

⚡️ What's your motivation?

We're moving away from this custom option and leaning into the pseudo-standard environment variable. This is an intermediate step before we remove the option entirely, so existing usages will cause the environment variable to be set, and all formatters will still work as expected.

🏷️ What kind of change is this?

  • 🏦 Refactoring/debt/DX (improvement to code design, tooling, etc. without changing behaviour)
  • 💥 Breaking change (incompatible changes to the API)

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

This text was originally generated from a template, then edited by hand. You can modify the template here.

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

Successfully merging this pull request may close these issues.

1 participant