Class: FlakyTestTracker::TestInput

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model, ActiveModel::Serializers::JSON
Defined in:
lib/flaky_test_tracker/test_input.rb

Overview

Test input attributes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionString

Test description.

Returns:

  • (String)

    the current value of description



17
18
19
# File 'lib/flaky_test_tracker/test_input.rb', line 17

def description
  @description
end

#exceptionString

Test exception message.

Returns:

  • (String)

    the current value of exception



17
18
19
# File 'lib/flaky_test_tracker/test_input.rb', line 17

def exception
  @exception
end

#file_pathString

Test source code file path.

Returns:

  • (String)

    the current value of file_path



17
18
19
# File 'lib/flaky_test_tracker/test_input.rb', line 17

def file_path
  @file_path
end

#finished_atTime

The moment the test execution finished.

Returns:

  • (Time)

    the current value of finished_at



17
18
19
# File 'lib/flaky_test_tracker/test_input.rb', line 17

def finished_at
  @finished_at
end

#line_numberInteger

Test source code line number.

Returns:

  • (Integer)

    the current value of line_number



17
18
19
# File 'lib/flaky_test_tracker/test_input.rb', line 17

def line_number
  @line_number
end

#number_occurrencesInteger

The number of times a failure was tracked.

Returns:

  • (Integer)

    the current value of number_occurrences



17
18
19
# File 'lib/flaky_test_tracker/test_input.rb', line 17

def number_occurrences
  @number_occurrences
end

#referenceString

Test unique reference.

Returns:

  • (String)

    the current value of reference



17
18
19
# File 'lib/flaky_test_tracker/test_input.rb', line 17

def reference
  @reference
end

#resolved_atTime

The moment the test was resolved.

Returns:

  • (Time)

    the current value of resolved_at



17
18
19
# File 'lib/flaky_test_tracker/test_input.rb', line 17

def resolved_at
  @resolved_at
end

#source_location_urlString

Test source code location URL.

Returns:

  • (String)

    the current value of source_location_url



17
18
19
# File 'lib/flaky_test_tracker/test_input.rb', line 17

def source_location_url
  @source_location_url
end

Instance Method Details

#==(other) ⇒ Object



50
51
52
# File 'lib/flaky_test_tracker/test_input.rb', line 50

def ==(other)
  attributes == other.attributes
end