Sha256: c9eb8ad19d1bb83f2e0817a6652bf38ea9bf1a1699df857e25b4ae04ae3650e2
Contents?: true
Size: 994 Bytes
Versions: 4
Compression:
Stored size: 994 Bytes
Contents
require "teaspoon/formatter/base" module Teaspoon module Formatter class Tap < Base protected def log_runner(_result) log_line("1..#{@total_count}") end def log_passing_spec(result) log_line("ok #{@run_count} - #{result.description}") end def log_pending_spec(result) log_line("ok #{@run_count} - [pending] #{result.description}") end def log_failing_spec(result) log_line("not ok #{@run_count} - #{result.description}") log_line(" FAIL #{result.message}") end def log_console(message) log_line("# #{message.gsub(/\n$/, '')}") end def log_coverage(message) log_line("# #{message.gsub(/\n/, "\n# ")}") end def log_threshold_failure(message) log_line("not ok #{@run_count + 1} - Coverage threshold failed") log_line("# #{message.gsub(/\n/, "\n# ")}") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
teaspoon-1.4.0 | lib/teaspoon/formatter/tap.rb |
teaspoon-1.2.2 | lib/teaspoon/formatter/tap.rb |
teaspoon-1.2.1 | lib/teaspoon/formatter/tap.rb |
teaspoon-1.2.0 | lib/teaspoon/formatter/tap.rb |