Class: Hydra::Listener::MinimalOutput

Inherits:
Abstract
  • Object
show all
Defined in:
lib/hydra/listener/minimal_output.rb

Overview

Minimal output listener. Outputs all the files at the start of testing and outputs a ./F/E per file. As well as full error output, if any.

Instance Method Summary collapse

Methods inherited from Abstract

#file_begin, #initialize, #worker_begin, #worker_end

Constructor Details

This class inherits a constructor from Hydra::Listener::Abstract

Instance Method Details

#file_end(file, output) ⇒ Object

For each file, just output a . for a successful file, or the Failure/Error output from the tests



19
20
21
# File 'lib/hydra/listener/minimal_output.rb', line 19

def file_end(file, output)
  @output.write output
end

#testing_begin(files) ⇒ Object

output a starting message



8
9
10
# File 'lib/hydra/listener/minimal_output.rb', line 8

def testing_begin(files)
  @output.write "Hydra Testing:\n#{files.inspect}\n"
end

#testing_endObject

output a finished message



13
14
15
# File 'lib/hydra/listener/minimal_output.rb', line 13

def testing_end
  @output.write "\nHydra Completed\n"
end