Skip to content

Commit 87db59e

Browse files
authored
Merge pull request #27 from th7/readme-use-colors
readme describes in-code option for disabling colors
2 parents d61807a + 19a2f65 commit 87db59e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ code, generally in your test helper or setup file.
5353
### Options
5454

5555
```ruby
56+
SimpleCov::Formatter::Console.use_colors = false # true (default) or false
5657
SimpleCov::Formatter::Console.sort = 'path' # sort by file path
5758
SimpleCov::Formatter::Console.show_covered = true # show all files in coverage report
5859
SimpleCov::Formatter::Console.max_rows = 15 # integer
@@ -69,7 +70,13 @@ the uppercase name, e.g., `MAX_ROWS`.
6970

7071
#### Disabling colorized output
7172

72-
Color support is active by default. To disable, export `NO_COLOR=1`:
73+
Color support is active by default. To disable:
74+
75+
```ruby
76+
SimpleCov::Formatter::Console.use_colors = false
77+
```
78+
79+
Or export `NO_COLOR=1`:
7380

7481
```sh
7582
NO_COLOR=1 rake test

0 commit comments

Comments
 (0)