Class: Buildr::JavaScript::Shenandoah

Inherits:
TestFramework::Base
  • Object
show all
Defined in:
lib/shenandoah/buildr/test_framework.rb

Class Method Summary collapse

Instance Method Summary collapse

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, options)
  super
  @locator = ::Shenandoah::Buildr::Locator.new(test_task.project)
  @runner = ::Shenandoah::Runner.new(@locator, options)
end

Class Method Details

.applies_to?(project) ⇒ Boolean

Returns:

  • (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