move ceedling tests to test/unit-test
This commit is contained in:
20
test/unit-test/vendor/ceedling/plugins/colour_report/README.md
vendored
Normal file
20
test/unit-test/vendor/ceedling/plugins/colour_report/README.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
ceedling-colour-report
|
||||
======================
|
||||
|
||||
## Overview
|
||||
|
||||
The colour_report replaces the normal ceedling "pretty" output with
|
||||
a colorized variant, in order to make the results easier to read from
|
||||
a standard command line. This is very useful on developer machines, but
|
||||
can occasionally cause problems with parsing on CI servers.
|
||||
|
||||
## Setup
|
||||
|
||||
Enable the plugin in your project.yml by adding `colour_report`
|
||||
to the list of enabled plugins.
|
||||
|
||||
``` YAML
|
||||
:plugins:
|
||||
:enabled:
|
||||
- colour_report
|
||||
```
|
||||
16
test/unit-test/vendor/ceedling/plugins/colour_report/lib/colour_report.rb
vendored
Normal file
16
test/unit-test/vendor/ceedling/plugins/colour_report/lib/colour_report.rb
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
require 'ceedling/plugin'
|
||||
require 'ceedling/streaminator'
|
||||
require 'ceedling/constants'
|
||||
|
||||
class ColourReport < Plugin
|
||||
|
||||
def setup
|
||||
@ceedling[:stream_wrapper].stdout_override(&ColourReport.method(:colour_stdout))
|
||||
end
|
||||
|
||||
def self.colour_stdout(string)
|
||||
require 'colour_reporter.rb'
|
||||
report string
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user