Class: Swiftrail::Junit::TestCase

Inherits:
Struct
  • Object
show all
Defined in:
lib/swiftrail/junit/report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#class_nameObject

Returns the value of attribute class_name

Returns:

  • (Object)

    the current value of class_name



4
5
6
# File 'lib/swiftrail/junit/report.rb', line 4

def class_name
  @class_name
end

#durationObject

Returns the value of attribute duration

Returns:

  • (Object)

    the current value of duration



4
5
6
# File 'lib/swiftrail/junit/report.rb', line 4

def duration
  @duration
end

#failuresObject

Returns the value of attribute failures

Returns:

  • (Object)

    the current value of failures



4
5
6
# File 'lib/swiftrail/junit/report.rb', line 4

def failures
  @failures
end

#full_class_nameObject

Returns the value of attribute full_class_name

Returns:

  • (Object)

    the current value of full_class_name



4
5
6
# File 'lib/swiftrail/junit/report.rb', line 4

def full_class_name
  @full_class_name
end

#test_nameObject

Returns the value of attribute test_name

Returns:

  • (Object)

    the current value of test_name



4
5
6
# File 'lib/swiftrail/junit/report.rb', line 4

def test_name
  @test_name
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/swiftrail/junit/report.rb', line 5

def success?
  failures.empty?
end