tasks/testing.rake in opal-0.10.0.beta2 vs tasks/testing.rake in opal-0.10.0.beta3

- old
+ new

@@ -16,10 +16,11 @@ mspec/helpers/tmp mspec/helpers/environment mspec/guards/block_device mspec/guards/endian a_file + lib/spec_helper ] end def specs(env = ENV) suite = env['SUITE'] @@ -33,11 +34,11 @@ end.flat_map do |path| path = "spec/#{path}" File.directory?(path) ? Dir[path+'/*.rb'] : "#{path}.rb" end - excepting - opalspecs = Dir['spec/{opal,lib/parser}/**/*_spec.rb'] + ['spec/lib/lexer_spec.rb'] + opalspecs = Dir['spec/{opal,lib/parser}/**/*_spec.rb'] + ['spec/lib/lexer_spec.rb', 'spec/lib/compiler_spec.rb'] userspecs = Dir[pattern] if pattern userspecs &= rubyspecs if whitelist_pattern opalspec_filters = Dir['spec/filters/**/*_opal.rb'] @@ -83,10 +84,11 @@ end File.write filename, <<-RUBY require 'spec_helper' require 'opal/platform' + require 'opal/full' OSpecRunner.main.will_start #{enter_benchmarking_mode} #{requires.join("\n ")} OSpecFilter.main.unused_filters_message(list: #{!!ENV['LIST_UNUSED_FILTERS']}) OSpecRunner.main.did_finish @@ -123,10 +125,10 @@ url = "http://localhost:#{port}/" mkdir_p File.dirname(filename) Testing.write_file filename, Testing.specs(ENV.to_hash.merge 'SUITE' => suite) - Testing.stubs.each {|s| ::Opal::Processor.stub_file s } + Testing.stubs.each {|s| ::Opal::Config.stubbed_files << s } Opal::Config.arity_check_enabled = true Opal::Config.freezing_stubs_enabled = true Opal::Config.tainting_stubs_enabled = false Opal::Config.dynamic_require_severity = :warning