Class: Spec::Runner::Formatter::TeamcityFormatter::RunningExampleData

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/teamcity.rb,
lib/rspec/teamcity_rspec3.rb

Overview

TODO remove flowid

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(full_name, additional_flowid_suffix, start_time_in_ms, stdout_file_old, stderr_file_old, stdout_file_new, stderr_file_new) ⇒ RunningExampleData

Returns a new instance of RunningExampleData.



650
651
652
653
654
655
656
657
658
659
# File 'lib/rspec/teamcity.rb', line 650

def initialize(full_name, additional_flowid_suffix, start_time_in_ms, stdout_file_old, stderr_file_old, stdout_file_new, stderr_file_new)
  @full_name = full_name
#          TODO: Remove!
  @additional_flowid_suffix = additional_flowid_suffix
  @start_time_in_ms = start_time_in_ms
  @stdout_file_old = stdout_file_old
  @stderr_file_old = stderr_file_old
  @stdout_file_new = stdout_file_new
  @stderr_file_new = stderr_file_new
end

Instance Attribute Details

#additional_flowid_suffixObject (readonly)

TODO: Remove!



643
644
645
# File 'lib/rspec/teamcity.rb', line 643

def additional_flowid_suffix
  @additional_flowid_suffix
end

#full_nameObject (readonly)

full task name, example name in build log



420
421
422
# File 'lib/rspec/teamcity_rspec3.rb', line 420

def full_name
  @full_name
end

#start_time_in_msObject (readonly)

start time of example



644
645
646
# File 'lib/rspec/teamcity.rb', line 644

def start_time_in_ms
  @start_time_in_ms
end

#stderr_file_newObject (readonly)

current capturing storage



648
649
650
# File 'lib/rspec/teamcity.rb', line 648

def stderr_file_new
  @stderr_file_new
end

#stderr_file_oldObject (readonly)

before capture



646
647
648
# File 'lib/rspec/teamcity.rb', line 646

def stderr_file_old
  @stderr_file_old
end

#stdout_file_newObject (readonly)

current capturing storage



647
648
649
# File 'lib/rspec/teamcity.rb', line 647

def stdout_file_new
  @stdout_file_new
end

#stdout_file_oldObject (readonly)

before capture



645
646
647
# File 'lib/rspec/teamcity.rb', line 645

def stdout_file_old
  @stdout_file_old
end

Instance Method Details

#get_std_filesObject



661
662
663
# File 'lib/rspec/teamcity.rb', line 661

def get_std_files
  return @stdout_file_old, @stderr_file_old, @stdout_file_new, @stderr_file_new
end