Sha256: 0102f93b8ab64f410081614a4d0b0e277c7ef9c8424b51e7d087f5bec89fc179

Contents?: true

Size: 998 Bytes

Versions: 11

Compression:

Stored size: 998 Bytes

Contents

module TestQueue
  # This class provides an abstraction over the various test frameworks we
  # support. The framework-specific subclasses are defined in the various
  # test_queue/runner/* files.
  class TestFramework
    # Return all file paths to load test suites from.
    #
    # An example implementation might just return files passed on the command
    # line, or defer to the underlying test framework to determine which files
    # to load.
    #
    # Returns an Enumerable of String file paths.
    def all_suite_files
      raise NotImplementedError
    end

    # Load all suites from the specified file path.
    #
    # path - String file path to load suites from
    #
    # Returns an Enumerable of tuples containing:
    #   suite_name   - String that uniquely identifies this suite
    #   suite        - Framework-specific object that can be used to actually
    #                  run the suite
    def suites_from_file(path)
      raise NotImplementedError
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
test-queue-0.7.0 lib/test_queue/test_framework.rb
test-queue-0.6.0 lib/test_queue/test_framework.rb
test-queue-0.5.0 lib/test_queue/test_framework.rb
test-queue-patched-0.4.5 lib/test_queue/test_framework.rb
test-queue-patched-0.4.4 lib/test_queue/test_framework.rb
test-queue-patched-0.4.3 lib/test_queue/test_framework.rb
test-queue-0.4.2 lib/test_queue/test_framework.rb
test-queue-0.4.1 lib/test_queue/test_framework.rb
test-queue-0.4.0 lib/test_queue/test_framework.rb
test-queue-0.3.1 lib/test_queue/test_framework.rb
test-queue-0.3.0 lib/test_queue/test_framework.rb