Class: Hexx::Suit::Metrics::SimpleCov Private

Inherits:
Base
  • Object
show all
Defined in:
lib/hexx/suit/metrics/simplecov.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Prepares and runs pippi environment

Constant Summary

Constants inherited from Base

Base::SYSTEM

Class Method Summary collapse

Methods inherited from Base

#load, #run

Class Method Details

.loadself

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Configures the SimpleCov metric

Returns:

  • (self)

24
25
26
27
28
29
# File 'lib/hexx/suit/metrics/simplecov.rb', line 24

def load
  set_environment
  configure_metric

  super
end

.newHexx::Suit::Metrics::SimpleCov

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Loads the simplecov and coveralls gem


15
16
17
18
# File 'lib/hexx/suit/metrics/simplecov.rb', line 15

def self.new
  %w(simplecov coveralls).each { |gem| require gem }
  super
end

.runundefined

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Configures simplecov from the simplecov.yml file and starts the metric

Returns:

  • (undefined)

36
37
38
# File 'lib/hexx/suit/metrics/simplecov.rb', line 36

def run
  metric.start
end