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

feat(highlight): allow disabling syntax highlighting of caller code #8

Merged
merged 1 commit into from
May 11, 2024

Conversation

arikkfir
Copy link
Owner

This change allows users to use the JUSTEST_DISABLE_SOURCE_HIGHLIGHT environment variable to disable or enable the source code syntax highlighting when showing it in failure stack traces.

Syntax highlighting remains enabled by default, but disabling it can be useful for some testing environments without support for rendering colors.

The environment variable can be set to the following values:

  • "true", "TRUE", "True", "T", "t", "1"
  • "false", "FALSE", "False", "F", "f", "0"

This change allows users to use the `JUSTEST_DISABLE_SOURCE_HIGHLIGHT`
environment variable to disable or enable the source code syntax
highlighting when showing it in failure stack traces.

Syntax highlighting remains enabled by default, but disabling it can be
useful for some testing environments without support for rendering
colors.

The environment variable can be set to the following values:
- "true", "TRUE", "True", "T", "t", "1"
- "false", "FALSE", "False", "F", "f", "0"
@arikkfir arikkfir added the feature New features and functionality label May 11, 2024
@arikkfir arikkfir self-assigned this May 11, 2024
@arikkfir arikkfir merged commit 314c968 into main May 11, 2024
2 checks passed
@arikkfir arikkfir deleted the feat/allow-disabling-sourcecode-highlighting branch May 11, 2024 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New features and functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant