You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@buildr.apache.org by Alex Boisvert <al...@gmail.com> on 2009/10/03 17:51:17 UTC

Excluding groovy specs on jruby?

Any particular reason for excluding groovy specs for jruby?

  desc "Run all specs"
  Spec::Rake::SpecTask.new :spec=>'_reports' do |task|
    task.spec_files = FileList['spec/**/*_spec.rb']
    task.spec_files.exclude('spec/groovy/*') if RUBY_PLATFORM[/java/]   #
Alex:  WHY?
    task.spec_opts = %w{--format specdoc --format failing_examples:failed
--format html:_reports/specs.html --loadby mtime --backtrace}
    task.spec_opts << '--colour' if $stdout.isatty
  end

These tests pass for me...

alex