From 55ab098eb1a778e794de8afb2773645405a11a7b Mon Sep 17 00:00:00 2001 From: Elliot Rushton Date: Wed, 17 Jul 2019 04:19:00 +0000 Subject: Add tip about stripping ANSI color codes --- doc/user/project/pipelines/settings.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/user/project/pipelines/settings.md b/doc/user/project/pipelines/settings.md index e60da6a3e59..df82daa3da3 100644 --- a/doc/user/project/pipelines/settings.md +++ b/doc/user/project/pipelines/settings.md @@ -89,6 +89,22 @@ in the jobs table. A few examples of known coverage tools for a variety of languages can be found in the pipelines settings page. +### Removing color codes + +Some test coverage tools output with ANSI color codes that won't be +parsed correctly by the regular expression and will cause coverage +parsing to fail. + +If your coverage tool doesn't provide an option to disable color +codes in the output, you can pipe the output of the coverage tool through a +small one line script that will strip the color codes off. + +For example: + +```bash +lein cloverage | perl -pe 's/\e\[?.*?[\@-~]//g' +``` + ## Visibility of pipelines Access to pipelines and job details (including output of logs and artifacts) -- cgit v1.2.1