maiflai / gradle-scalatest

A plugin to enable the use of scalatest in a gradle Scala project.
The Unlicense
73 stars 35 forks source link

Disable colored output #49

Closed ilinandrii closed 7 years ago

ilinandrii commented 7 years ago

Currently I don't see the way how to disable colored output for tests using plugin. There are options for runner to disable colored output: http://www.scalatest.org/user_guide/using_the_runner This would be very helpful because Jenkins output looks like this:

[32m- should build search parameters with a filter by archived (9 milliseconds)
  should build search parameters without a filter by archived
  - when archived is false (1 millisecond)
- should build search parameters with a raw query (8 milliseconds)
  should build search parameters without a raw query
  - when query is null (1 millisecond)
  - when query is empty (1 millisecond)

Maybe there is some workaround I can use with currently available functionality?

maiflai commented 7 years ago

It should respect the main Gradle command-line parameter --console plain?

This is covered at https://github.com/maiflai/gradle-scalatest/blob/master/src/test/groovy/com/github/maiflai/ScalaTestActionTest.groovy#L74

ilinandrii commented 7 years ago

Any tip how to use this command-line parameter with gradle plugin for Jenkins? If no, you can close this issue, I will search for that more. Thanks a lot for the fast feedback.

maiflai commented 7 years ago

I imagine that you add --console plain to the Switches text box.

ilinandrii commented 7 years ago

I will try that. Thank you very much.

ilinandrii commented 7 years ago

Haven't helped. But don't want to bother you anymore. Thanks again.

maiflai commented 7 years ago

No worries, sorry, I'm not a Jenkins user myself