Class: TestQueue::TestFramework
- Inherits:
-
Object
- Object
- TestQueue::TestFramework
- Defined in:
- lib/test_queue/test_framework.rb,
lib/test_queue/runner/rspec.rb,
lib/test_queue/runner/example.rb,
lib/test_queue/runner/cucumber.rb,
lib/test_queue/runner/testunit.rb,
lib/test_queue/runner/minitest5.rb
Overview
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.
Defined Under Namespace
Classes: Cucumber, Example, Minitest, RSpec, TestUnit
Constant Summary collapse
- MiniTest =
For compatibility with test-queue 0.7.0 and earlier.
Minitest
Instance Method Summary collapse
-
#all_suite_files ⇒ Object
Return all file paths to load test suites from.
-
#suites_from_file(path) ⇒ Object
Load all suites from the specified file path.
Instance Method Details
#all_suite_files ⇒ Object
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.
15 16 17 |
# File 'lib/test_queue/test_framework.rb', line 15 def all_suite_files raise NotImplementedError end |
#suites_from_file(path) ⇒ Object
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
27 28 29 |
# File 'lib/test_queue/test_framework.rb', line 27 def suites_from_file(path) raise NotImplementedError end |