Skip to content

fix(test): use gray256 color in tests when enabled

Vitali Tatarintev requested to merge 1280-fix-tests-for-makeColorFunc into main

Description

Only use gray 256 color in tests output when explicitly enabled.

(As I understand it) Most of the tests do not treat their output as an output to the terminal making the output colorless. makeColorFunc requires colors to be applied, so we explicitly turn on the "is terminal" setting.

Related Issues

Resolves #1280 (closed)

How has this been tested?

By running make test. Before the fix there is a failing test.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
  • Test gap

Closes #1280 (closed)

Merge request reports