Class: Spork::RunStrategy
- Inherits:
-
Object
- Object
- Spork::RunStrategy
- Defined in:
- lib/spork/run_strategy.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Forking
Constant Summary collapse
- @@run_strategies =
[]
Instance Attribute Summary collapse
-
#test_framework ⇒ Object
readonly
Returns the value of attribute test_framework.
Instance Method Summary collapse
- #abort ⇒ Object
- #cleanup ⇒ Object
-
#initialize(test_framework) ⇒ RunStrategy
constructor
A new instance of RunStrategy.
- #preload ⇒ Object
- #run(argv, input, output) ⇒ Object
- #running? ⇒ Boolean
Constructor Details
#initialize(test_framework) ⇒ RunStrategy
Returns a new instance of RunStrategy.
5 6 7 |
# File 'lib/spork/run_strategy.rb', line 5 def initialize(test_framework) @test_framework = test_framework end |
Instance Attribute Details
#test_framework ⇒ Object (readonly)
Returns the value of attribute test_framework.
2 3 4 |
# File 'lib/spork/run_strategy.rb', line 2 def test_framework @test_framework end |
Instance Method Details
#abort ⇒ Object
25 26 27 |
# File 'lib/spork/run_strategy.rb', line 25 def abort raise NotImplementedError end |
#cleanup ⇒ Object
17 18 19 |
# File 'lib/spork/run_strategy.rb', line 17 def cleanup raise NotImplementedError end |
#preload ⇒ Object
9 10 11 |
# File 'lib/spork/run_strategy.rb', line 9 def preload raise NotImplementedError end |
#run(argv, input, output) ⇒ Object
13 14 15 |
# File 'lib/spork/run_strategy.rb', line 13 def run(argv, input, output) raise NotImplementedError end |
#running? ⇒ Boolean
21 22 23 |
# File 'lib/spork/run_strategy.rb', line 21 def running? raise NotImplementedError end |