Module: TestBench::Run::Controls::Summary::File::Styled

Defined in:
lib/test_bench/run/controls/summary/file.rb

Class Method Summary collapse

Class Method Details

.exampleObject



24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/test_bench/run/controls/summary/file.rb', line 24

def self.example
  <<~TEXT
  \e[1;4m\e[31mFile Summary\e[m
  \e[31m\e[2m-\e[22m \e[1m#{Info.path}\e[22m: no tests, 11 failures, 12+ skipped, 2 errors:\e[m
    \e[31m#{Message::Error.example}\e[m
    \e[31m#{Session::BacktraceLocation.example}\e[m
  \e[m
    \e[31m#{Message::Error.other_example}\e[m
    \e[31m#{Session::BacktraceLocation.other_example}\e[m
  \e[m
  \e[31m\e[2m-\e[22m \e[1m#{Info::Other.path}\e[22m: 1 failure\e[m
  TEXT
end