Class: Verity::Test

Inherits:
Data
  • Object
show all
Defined in:
lib/verity.rb

Overview

Public: Immutable value object representing a single registered test case.

fingerprint - String content-based identifier for the test body. description - String human-readable name supplied to the ‘test` DSL. tags - Array of Symbols applied directly to the test. timeout - Numeric seconds (or nil); enforced by Runner with stdlib Timeout. requires - Array of Symbols naming shared preconditions. resources - Hash of keyword resources forwarded from `test`. file - String absolute path of the source file. line - Integer source line number. fn - Proc (block) containing the test body. group_path - Frozen Array of Strings representing nested group titles. inherited_group_tags - Frozen Array of Symbols from enclosing group tags. group_scopes - Frozen Array of GroupScope (enclosing groups, outer first).

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



36
37
38
# File 'lib/verity.rb', line 36

def description
  @description
end

#fileObject (readonly)

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



36
37
38
# File 'lib/verity.rb', line 36

def file
  @file
end

#fingerprintObject (readonly)

Returns the value of attribute fingerprint

Returns:

  • (Object)

    the current value of fingerprint



36
37
38
# File 'lib/verity.rb', line 36

def fingerprint
  @fingerprint
end

#fnObject (readonly)

Returns the value of attribute fn

Returns:

  • (Object)

    the current value of fn



36
37
38
# File 'lib/verity.rb', line 36

def fn
  @fn
end

#group_pathObject (readonly)

Returns the value of attribute group_path

Returns:

  • (Object)

    the current value of group_path



36
37
38
# File 'lib/verity.rb', line 36

def group_path
  @group_path
end

#group_scopesObject (readonly)

Returns the value of attribute group_scopes

Returns:

  • (Object)

    the current value of group_scopes



36
37
38
# File 'lib/verity.rb', line 36

def group_scopes
  @group_scopes
end

#inherited_group_tagsObject (readonly)

Returns the value of attribute inherited_group_tags

Returns:

  • (Object)

    the current value of inherited_group_tags



36
37
38
# File 'lib/verity.rb', line 36

def inherited_group_tags
  @inherited_group_tags
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



36
37
38
# File 'lib/verity.rb', line 36

def line
  @line
end

#requiresObject (readonly)

Returns the value of attribute requires

Returns:

  • (Object)

    the current value of requires



36
37
38
# File 'lib/verity.rb', line 36

def requires
  @requires
end

#resourcesObject (readonly)

Returns the value of attribute resources

Returns:

  • (Object)

    the current value of resources



36
37
38
# File 'lib/verity.rb', line 36

def resources
  @resources
end

#tagsObject (readonly)

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



36
37
38
# File 'lib/verity.rb', line 36

def tags
  @tags
end

#timeoutObject (readonly)

Returns the value of attribute timeout

Returns:

  • (Object)

    the current value of timeout



36
37
38
# File 'lib/verity.rb', line 36

def timeout
  @timeout
end