Start a new project from the scala-seed g8 template (for example)
sbt new scala/scala-seed.g8
export CI=true
sbt -Dsbt.color=true test
Display colors in test results
export CI=true
sbt -Dsbt.color=true test
Does not display colors in test results
Harder to see failing tests on CI when looking at the test job result
Behavior not expected when setting flag sbt.color=true
export CI=true
sbt -Dsbt.color=true test
Display colors in test results
Thanks for the report! Should be fixed by #5960
After upgrading to 1.4.2 version the coloring doesn't work. Tested via:
export SBT_OPTS="-Dsbt.color=true"
sbt test
and
export CI=true
sbt -Dsbt.color=true test
Downgrading to 1.4.1 works. Should I create a new issue or this comment is enough?
Thanks for the report. I think this should be fixed by #6061. FTR, I couldn't fully reproduce this. There were some colors printed with sbt 1.4.2 but the scalatest output was not colorized which is what #6061 fixes.