Class: CircleCI::TestReport::TestCase

Inherits:
Object
  • Object
show all
Defined in:
lib/circleci/test_report/test_case.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTestCase

Returns a new instance of TestCase.



6
7
8
9
10
11
12
13
# File 'lib/circleci/test_report/test_case.rb', line 6

def initialize
  @classname = ""
  @name      = ""
  @file      = ""
  @time      = ""
  @failure   = nil # {message: '', type: '', text: ''}
  @skipped   = false
end

Instance Attribute Details

#classnameObject

Returns the value of attribute classname.



4
5
6
# File 'lib/circleci/test_report/test_case.rb', line 4

def classname
  @classname
end

#failureObject

Returns the value of attribute failure.



4
5
6
# File 'lib/circleci/test_report/test_case.rb', line 4

def failure
  @failure
end

#fileObject

Returns the value of attribute file.



4
5
6
# File 'lib/circleci/test_report/test_case.rb', line 4

def file
  @file
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/circleci/test_report/test_case.rb', line 4

def name
  @name
end

#skippedObject

Returns the value of attribute skipped.



4
5
6
# File 'lib/circleci/test_report/test_case.rb', line 4

def skipped
  @skipped
end

#timeObject

Returns the value of attribute time.



4
5
6
# File 'lib/circleci/test_report/test_case.rb', line 4

def time
  @time
end