Sha256: 0f5a33e64b5965d2cdf6f8fdd3016f1e2d4e6feff57ecf8f5c774305b40b470b

Contents?: true

Size: 989 Bytes

Versions: 8

Compression:

Stored size: 989 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "spec/jasmine_helper.rb"))

namespace :test do
  desc "Run continuous integration tests"
  task :ci => :'ci:local'
  namespace :ci do
    require "spec"
    require 'spec/rake/spectask'

    Spec::Rake::SpecTask.new(:local) do |t|
      t.spec_opts = ["--color", "--format", "specdoc"]
      t.spec_files = ["spec/jasmine_spec.rb"]
    end

    desc "Run continuous integration tests using Sauce Labs 'Selenium in the Cloud'"
    task :saucelabs do
      ENV['SAUCELABS'] = 'true'
      Rake::Task['test:ci:local'].invoke
    end
  end
end

desc "Run specs via server"
task :jasmine_server do
  require File.expand_path(File.join(JasmineHelper.jasmine_root, "contrib/ruby/jasmine_spec_builder"))

  puts "your tests are here:"
  puts "  http://localhost:8888/run.html"

  Jasmine::SimpleServer.start(8888,
                              lambda { JasmineHelper.specs },
                              JasmineHelper.dir_mappings)
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
jasnode-0.4.3.0 jasmine/examples/ruby/Rakefile
jasnode-0.4.2.0 jasmine/examples/ruby/Rakefile
jasnode-0.4.1.0 jasmine/examples/ruby/Rakefile
jasnode-0.4.0.0 jasmine/examples/ruby/Rakefile
jasnode-0.2.0.0 jasmine/examples/ruby/Rakefile
jazz-0.1.1 vendor/jasmine/examples/ruby/Rakefile
jazrb-0.1.1 vendor/jasmine/examples/ruby/Rakefile
jazrb-0.1.0 vendor/jasmine/examples/ruby/Rakefile