Class: OpenC3::ScriptStatus

Inherits:
Object show all
Defined in:
lib/openc3/script/suite.rb

Overview

Helper class to collect information about the running scripts like pass / fail counts

Direct Known Subclasses

TestStatus

Constant Summary collapse

@@instance =
nil

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeScriptStatus

Returns a new instance of ScriptStatus.



503
504
505
506
507
508
509
# File 'lib/openc3/script/suite.rb', line 503

def initialize
  @status = ''
  @pass_count = 0
  @skip_count = 0
  @fail_count = 0
  @total = 1
end

Instance Attribute Details

#fail_countObject

Returns the value of attribute fail_count.



498
499
500
# File 'lib/openc3/script/suite.rb', line 498

def fail_count
  @fail_count
end

#pass_countObject

Returns the value of attribute pass_count.



496
497
498
# File 'lib/openc3/script/suite.rb', line 496

def pass_count
  @pass_count
end

#skip_countObject

Returns the value of attribute skip_count.



497
498
499
# File 'lib/openc3/script/suite.rb', line 497

def skip_count
  @skip_count
end

#statusObject

Returns the value of attribute status.



495
496
497
# File 'lib/openc3/script/suite.rb', line 495

def status
  @status
end

#totalObject

Returns the value of attribute total.



499
500
501
# File 'lib/openc3/script/suite.rb', line 499

def total
  @total
end

Class Method Details

.instanceObject



519
520
521
522
# File 'lib/openc3/script/suite.rb', line 519

def self.instance
  @@instance = self.new unless @@instance
  @@instance
end