Sha256: a672527f8412e847041128a093c21c2ac3b6beeeb8af6986b2b50751ea3c1c3a
Contents?: true
Size: 751 Bytes
Versions: 2
Compression:
Stored size: 751 Bytes
Contents
require 'bundler' Bundler.require require 'bundler/gem_tasks' task :test do require 'opal' require 'opal/cli_runners' require 'opal/minitest' Opal::Config.arity_check_enabled = true Opal::Config.dynamic_require_severity = :warning Opal.append_path 'opal' Opal.append_path 'test' builder = Opal::Builder.new builder.build 'opal' builder.build 'opal/platform' builder.build 'minitest' Dir['test/**/*_test.rb'].map do |file| builder.build file.sub(%r{^test/}, '') end builder.build_str 'Minitest.run', 'minitest-runner.rb' runner_name = ENV['RUNNER'] || 'nodejs' runner_class = Opal::CliRunners.const_get(runner_name.capitalize) runner_class.new(output: $stdout).run(builder.to_s, []) end task default: :test
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
opal-activesupport-0.3.3 | Rakefile |
opal-activesupport-0.3.2 | Rakefile |