Class: Buildr::JavaScript::Shenandoah
- Inherits:
-
TestFramework::Base
- Object
- TestFramework::Base
- Buildr::JavaScript::Shenandoah
- Defined in:
- lib/shenandoah/buildr/test_framework.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(test_task, options) ⇒ Shenandoah
constructor
A new instance of Shenandoah.
- #run(tests, dependencies) ⇒ Object
- #tests(dependencies) ⇒ Object
Constructor Details
#initialize(test_task, options) ⇒ Shenandoah
Returns a new instance of Shenandoah.
13 14 15 16 17 |
# File 'lib/shenandoah/buildr/test_framework.rb', line 13 def initialize(test_task, ) super @locator = ::Shenandoah::Buildr::Locator.new(test_task.project) @runner = ::Shenandoah::Runner.new(@locator, ) end |
Class Method Details
.applies_to?(project) ⇒ Boolean
8 9 10 |
# File 'lib/shenandoah/buildr/test_framework.rb', line 8 def applies_to?(project) !::Shenandoah::Buildr::Locator.new(project).spec_files.empty? end |
Instance Method Details
#run(tests, dependencies) ⇒ Object
23 24 25 |
# File 'lib/shenandoah/buildr/test_framework.rb', line 23 def run(tests, dependencies) @runner.run_console(tests) end |
#tests(dependencies) ⇒ Object
19 20 21 |
# File 'lib/shenandoah/buildr/test_framework.rb', line 19 def tests(dependencies) @locator.spec_files end |