Sha256: f17c8c878ba007d11bb6f74296a12d82fe16fba6aa1a85506851bcc7dd15339f

Contents?: true

Size: 683 Bytes

Versions: 7

Compression:

Stored size: 683 Bytes

Contents

require 'shenandoah/runner'
require 'shenandoah/buildr/locator'

module Buildr # :nodoc:
  module JavaScript # :nodoc:
    class Shenandoah < TestFramework::Base
      class << self
        def applies_to?(project)
          !::Shenandoah::Buildr::Locator.new(project).spec_files.empty?
        end
      end

      def initialize(test_task, options)
        super
        @locator = ::Shenandoah::Buildr::Locator.new(test_task.project)
        @runner = ::Shenandoah::Runner.new(@locator, options)
      end

      def tests(dependencies)
        @locator.spec_files
      end
      
      def run(tests, dependencies)
        @runner.run_console(tests)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
rsutphin-shenandoah-0.1.0 lib/shenandoah/buildr/test_framework.rb
rsutphin-shenandoah-0.1.1 lib/shenandoah/buildr/test_framework.rb
rsutphin-shenandoah-0.1.2 lib/shenandoah/buildr/test_framework.rb
shenandoah-0.1.0 lib/shenandoah/buildr/test_framework.rb
shenandoah-0.1.1 lib/shenandoah/buildr/test_framework.rb
shenandoah-0.1.2 lib/shenandoah/buildr/test_framework.rb
shenandoah-0.0.0 lib/shenandoah/buildr/test_framework.rb