Antoine,

I'm not getting through to the apache jira instance right now, so I can't attach this patch just yet. It works for me locally, could you give this a try as well?

Pepijn

On 9/6/2010 08:54, Antoine Toulme wrote:
Here goes:
https://issues.apache.org/jira/browse/BUILDR-453

On Tue, Jun 8, 2010 at 23:51, Antoine Toulme<[email protected]>wrote:

Oh yes! I wanted to file a bug to track this.


On Tue, Jun 8, 2010 at 23:50, Pepijn Van Eeckhoudt<
[email protected]>  wrote:

Antoine,

Would it be possible to get ci_reporter output from rspec on this box?
That would make it a bit easier to go through the tests.

Pepijn


On 9/6/2010 08:05, Antoine Toulme wrote:

OK, we now have a CI build with MRI.

We have 4 failures... we need to fix them before we take it further.

On Tue, Jun 8, 2010 at 22:51, Apache Hudson Server<
[email protected]>   wrote:

  See<http://hudson.zones.apache.org/hudson/job/Buildr-ci-build/11/>

------------------------------------------
[...truncated 2843 lines...]

ARG_0 = ""
ARG_1 = "" [0m

  [31m  at org.scalatest.prop.Checkers$class.check(Checkers.scala:241)
[0m
  [31m  at StringSuite.check(StringSuite.scala:6) [0m
  [31m  at org.scalatest.prop.Checkers$class.check(Checkers.scala:304)
[0m
  [31m  at StringSuite.check(StringSuite.scala:6) [0m
  [31m  at org.scalatest.prop.Checkers$class.check(Checkers.scala:115)
[0m
  [31m  at StringSuite.check(StringSuite.scala:6) [0m
  [31m  at StringSuite$$anonfun$3.apply(StringSuite.scala:17) [0m
  [31m  at StringSuite$$anonfun$3.apply(StringSuite.scala:17) [0m
  [31m  at org.scalatest.FunSuite$$anon$2.apply(FunSuite.scala:1158) [0m
  [31m  at org.scalatest.Suite$class.withFixture(Suite.scala:1509) [0m
  [31m  at StringSuite.withFixture(StringSuite.scala:6) [0m
  [31m  at org.scalatest.FunSuite$class.runTest(FunSuite.scala:1155) [0m
  [31m  at StringSuite.runTest(StringSuite.scala:6) [0m
  [31m  at
org.scalatest.FunSuite$$anonfun$runTests$1.apply(FunSuite.scala:1264)
[0m
  [31m  at
org.scalatest.FunSuite$$anonfun$runTests$1.apply(FunSuite.scala:1255)
[0m
  [31m  at scala.List.foreach(List.scala:841) [0m
  [31m  at org.scalatest.FunSuite$class.runTests(FunSuite.scala:1255) [0m
  [31m  at StringSuite.runTests(StringSuite.scala:6) [0m
  [31m  at org.scalatest.Suite$class.run(Suite.scala:1804) [0m
  [31m  at
StringSuite.org$scalatest$FunSuite$$super$run(StringSuite.scala:6) [0m
  [31m  at org.scalatest.FunSuite$class.run(FunSuite.scala:1304) [0m
  [31m  at StringSuite.run(StringSuite.scala:6) [0m
  [31m  at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:59) [0m
  [31m  at

org.scalatest.tools.Runner$$anonfun$doRunRunRunADoRunRun$3.apply(Runner.scala:1523)
[0m
  [31m  at

org.scalatest.tools.Runner$$anonfun$doRunRunRunADoRunRun$3.apply(Runner.scala:1520)
[0m
  [31m  at scala.List.foreach(List.scala:841) [0m
  [31m  at
org.scalatest.tools.Runner$.doRunRunRunADoRunRun(Runner.scala:1520) [0m
  [31m  at

org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:616)
[0m
  [31m  at

org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:615)
[0m
  [31m  at

org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1564)
[0m
  [31m  at

org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:614)
[0m
  [31m  at org.scalatest.tools.Runner$.run(Runner.scala:517) [0m
  [31m  at
org.scalatest.tools.ScalaTestAntTask.execute(ScalaTestAntTask.scala:267)
[0m
  [31m  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [0m
  [32mTest Starting - StringSuite: substring2 [0m
  [32mTest Succeeded - StringSuite: substring2 [0m
  [32mTest Starting - StringSuite: substring3 [0m
  [32mTest Succeeded - StringSuite: substring3 [0m
  [32mSuite Completed - StringSuite [0m
  [36mRun completed in 482 milliseconds. [0m
  [36mTotal number of tests run: 5 [0m
  [36mSuites: completed 1, aborted 0 [0m
  [36mTests: succeeded 4, failed 1, ignored 0, pending 0 [0m
  [31m*** 1 TEST FAILED *** [0m
- should fail if ScalaCheck test case fails

Buildr::Scala::Specs
- should be the default when tests in src/spec/scala
- should include Specs dependencies
- should include ScalaCheck dependencies
- should include JMock dependencies
Specification "MySpecs"
  it should
   [32m+ [0m add

Total for specification "MySpecs":
Finished in 0 second, 61 ms
1 example, 1 expectation, 0 failure, 0 error

- should include public objects extending org.specs.Specification
Specification "MySpecs"
  it should
   [32m+ [0m add

Total for specification "MySpecs":
Finished in 0 second, 56 ms
1 example, 1 expectation, 0 failure, 0 error

- should include public objects extending org.specs.Specification even
with
companion classes
Specification "PassingSpecs"
  it should
   [32m+ [0m add

Total for specification "PassingSpecs":
Finished in 0 second, 56 ms
1 example, 1 expectation, 0 failure, 0 error

- should pass when spec passes
JavaTestFilter: Unable to load class StringSpecs to determine testing
ability
- should fail when spec fails (FAILED - 4)

scala compiler (installed in SCALA_HOME)
- requires present SCALA_HOME
- should identify itself from source directories
- should report the language as :scala
- should set the target directory to target/classes
- should not override existing target directory
- should not change existing list of sources
- should include as classpath dependency
- should compile a simple .scala file into a .class file
- should package .class into a .jar file
- should compile scala class depending on java class in same project
- should compile java class depending on scala class in same project

scala compiler (downloaded from repository)
- requires absent SCALA_HOME
- should identify itself from source directories
- should report the language as :scala
- should set the target directory to target/classes
- should not override existing target directory
- should not change existing list of sources
- should include as classpath dependency
- should compile a simple .scala file into a .class file
- should package .class into a .jar file
- should compile scala class depending on java class in same project
- should compile java class depending on scala class in same project

scalac compiler options
- should set warnings option to false by default
mkdir -p<
http://hudson.zones.apache.org/hudson/job/Buildr-ci-build/ws/tmp/home>
- should set warnings option to true when running with --verbose option
mkdir -p<

http://hudson.zones.apache.org/hudson/job/Buildr-ci-build/ws/tmp/home/.buildr


  - should use -nowarn argument when warnings is false
- should not use -nowarn argument when warnings is true
- should not use -verbose argument by default
- should use -verbose argument when running with --trace option
- should set debug option to true by default
- should set debug option to false based on Buildr.options
- should set debug option to false based on debug environment variable
- should set debug option to false based on DEBUG environment variable
- should use -g argument when debug option is true
- should not use -g argument when debug option is false
- should set deprecation option to false by default
- should use -deprecation argument when deprecation is true
- should not use -deprecation argument when deprecation is false
- should set optimise option to false by default
- should use -optimise argument when deprecation is true
- should not use -optimise argument when deprecation is false
- should not set target option by default
- should use -target:xxx argument if target option set
- should not set other option by default
- should pass other argument if other option is string
- should pass other argument if other option is array
- should complain about options it doesn't know
- should inherit options from parent

1)
RuntimeError in 'Buildr::RSpec should read passed specs from result
yaml'
Tests failed!
<

http://hudson.zones.apache.org/hudson/job/Buildr-ci-build/ws/lib/buildr/core/test.rb
:490:in
`run_tests'
<

http://hudson.zones.apache.org/hudson/job/Buildr-ci-build/ws/lib/buildr/core/test.rb
:211:in
`initialize'
/home/toulmean/buildr-gems/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/home/toulmean/buildr-gems/gems/rake-0.8.7/lib/rake.rb:636:in
`execute_without_a_record'
/home/toulmean/buildr-gems/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/home/toulmean/buildr-gems/gems/rake-0.8.7/lib/rake.rb:631:in
`execute_without_a_record'
./spec/groovy/../spec_helpers.rb:144:in `execute'
<

http://hudson.zones.apache.org/hudson/job/Buildr-ci-build/ws/lib/buildr/core/test.rb
:239:in
`execute'
<

http://hudson.zones.apache.org/hudson/job/Buildr-ci-build/ws/lib/buildr/core/application.rb
:636:in
`invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
<

http://hudson.zones.apache.org/hudson/job/Buildr-ci-build/ws/lib/buildr/core/application.rb
:622:in
`invoke_with_call_chain'
<

http://hudson.zones.apache.org/hudson/job/Buildr-ci-build/ws/lib/buildr/core/application.rb
:617:in
`invoke'
./spec/java/bdd_spec.rb:33:

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:40:in
`instance_eval'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:40:in
`execute'
/usr/lib/ruby/1.8/timeout.rb:53:in `timeout'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:37:in
`execute'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:214:in
`run_examples'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:212:in
`each'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:212:in
`run_examples'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:103:in
`run'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:23:in
`run'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:22:in
`each'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:22:in
`run'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/options.rb:151:in
`run_examples'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/command_line.rb:9:in
`run'
/home/toulmean/buildr-gems/gems/rspec-1.2.9/bin/spec:5:

2)
'Buildr::RSpec should read result yaml to obtain the list of failed
specs'
FAILED

expected ["<

http://hudson.zones.apache.org/hudson/job/Buildr-ci-build/ws/tmp/src/spec/ruby/error_spec.rb
",>
"<

http://hudson.zones.apache.org/hudson/job/Buildr-ci-build/ws/tmp/src/spec/ruby/failure_spec.rb
"]>
     got ["<

http://hudson.zones.apache.org/hudson/job/Buildr-ci-build/ws/tmp/src/spec/ruby/error_spec.rb
",>
"<

http://hudson.zones.apache.org/hudson/job/Buildr-ci-build/ws/tmp/src/spec/ruby/failure_spec.rb
",>
"<

http://hudson.zones.apache.org/hudson/job/Buildr-ci-build/ws/tmp/src/spec/ruby/success_spec.rb
"]>

(compared using eql?)

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/expectations/fail_with.rb:41:in
`fail_with'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/expectations/handler.rb:21:in
`handle_matcher'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/expectations/extensions/kernel.rb:27:in
`should'
./spec/java/bdd_spec.rb:47:

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:40:in
`instance_eval'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:40:in
`execute'
/usr/lib/ruby/1.8/timeout.rb:53:in `timeout'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:37:in
`execute'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:214:in
`run_examples'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:212:in
`each'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:212:in
`run_examples'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:103:in
`run'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:23:in
`run'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:22:in
`each'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:22:in
`run'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/options.rb:151:in
`run_examples'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/command_line.rb:9:in
`run'
/home/toulmean/buildr-gems/gems/rspec-1.2.9/bin/spec:5:

3)
Errno::EISDIR in 'File#utime should update mtime of directories'
Is a directory - tmp
./spec/core/util_spec.rb:83:in `delete'
./spec/core/util_spec.rb:83:

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:40:in
`instance_eval'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:40:in
`execute'
/usr/lib/ruby/1.8/timeout.rb:53:in `timeout'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:37:in
`execute'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:214:in
`run_examples'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:212:in
`each'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:212:in
`run_examples'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:103:in
`run'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:23:in
`run'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:22:in
`each'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:22:in
`run'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/options.rb:151:in
`run_examples'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/command_line.rb:9:in
`run'
/home/toulmean/buildr-gems/gems/rspec-1.2.9/bin/spec:5:

4)
NoMethodError in 'Buildr::Scala::Specs should fail when spec fails'
undefined method `include?' for nil:NilClass

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/matchers/include.rb:36:in
`helper'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/matchers/include.rb:26:in
`each'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/matchers/include.rb:26:in
`helper'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/matchers/include.rb:22:in
`include'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/matchers/matcher.rb:26:in
`instance_exec'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/matchers/matcher.rb:26:in
`matches?'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/expectations/handler.rb:11:in
`handle_matcher'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/expectations/extensions/kernel.rb:27:in
`should'
./spec/scala/bdd_spec.rb:122:

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:40:in
`instance_eval'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:40:in
`execute'
/usr/lib/ruby/1.8/timeout.rb:53:in `timeout'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:37:in
`execute'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:214:in
`run_examples'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:212:in
`each'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:212:in
`run_examples'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:103:in
`run'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:23:in
`run'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:22:in
`each'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:22:in
`run'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/options.rb:151:in
`run_examples'

/home/toulmean/buildr-gems/gems/rspec-1.2.9/lib/spec/runner/command_line.rb:9:in
`run'
/home/toulmean/buildr-gems/gems/rspec-1.2.9/bin/spec:5:

Finished in 218.251337 seconds

1906 examples, 4 failures
rake aborted!
Command /usr/bin/ruby1.8 -I"lib"
  "/home/toulmean/buildr-gems/gems/rspec-1.2.9/bin/spec"
"spec/groovy/bdd_spec.rb" "spec/groovy/compiler_spec.rb"
"spec/addon/drb_spec.rb" "spec/java/commands_spec.rb"
"spec/java/packaging_spec.rb" "spec/java/tests_spec.rb"
"spec/java/bdd_spec.rb" "spec/java/emma_spec.rb" "spec/java/ant_spec.rb"
"spec/java/cobertura_spec.rb" "spec/java/compiler_spec.rb"
"spec/java/java_spec.rb" "spec/core/compile_spec.rb"
"spec/core/common_spec.rb" "spec/core/cc_spec.rb"
"spec/core/project_spec.rb" "spec/core/generate_spec.rb"
"spec/core/checks_spec.rb" "spec/core/application_spec.rb"
"spec/core/util_spec.rb" "spec/core/extension_spec.rb"
"spec/core/transport_spec.rb" "spec/core/test_spec.rb"
"spec/core/build_spec.rb" "spec/ide/idea7x_spec.rb"
"spec/ide/eclipse_spec.rb" "spec/packaging/artifact_spec.rb"
"spec/packaging/artifact_namespace_spec.rb"
"spec/packaging/packaging_spec.rb" "spec/packaging/archive_spec.rb"
"spec/version_requirement_spec.rb" "spec/scala/tests_spec.rb"
"spec/scala/bdd_spec.rb" "spec/scala/compiler_spec.rb" --format specdoc
--format failing_examples:failed --format html:_reports/specs.html
--backtrace failed

(See full trace by running task with --trace)





--
Pepijn Van Eeckhoudt - Project Leader
T +32 16 23 95 91
F +32 16 29 34 22 | [email protected]

LUCIAD - high performance visualization
Wetenschapspark Arenberg | Gaston Geenslaan 11
3001 Leuven | Belgium | www.luciad.com






--
Pepijn Van Eeckhoudt - Project Leader
T +32 16 23 95 91
F +32 16 29 34 22 | [email protected]

LUCIAD - high performance visualization
Wetenschapspark Arenberg | Gaston Geenslaan 11
3001 Leuven | Belgium | www.luciad.com

Index: rakelib/rspec.rake
===================================================================
--- rakelib/rspec.rake  (revision 936598)
+++ rakelib/rspec.rake  (revision )
@@ -28,6 +28,22 @@
   end
   file('_reports/specs.html') { task(:spec).invoke }
 
+  desc "Run all specs with CI reporter"
+  spec_ci = task :spec_ci
+  spec_ci.enhance do
+    puts 'Setting up CI reporter'
+    ENV['CI_REPORTS'] = '_reports'
+    require 'rubygems'
+    gem 'ci_reporter'
+
+    # CI_Reporter does not quote the path to rspec_loader which causes 
problems when ruby is installed in C:/Program Files
+    ci_rep_path = Gem.loaded_specs['ci_reporter'].full_gem_path
+    spec_opts = ["--require", 
"\"#{ci_rep_path}/lib/ci/reporter/rake/rspec_loader.rb\"", "--format", 
"CI::Reporter::RSpec"].join(" ")
+    ENV["SPEC_OPTS"] = "#{ENV['SPEC_OPTS']} #{spec_opts}"
+
+    task(:spec).invoke
+  end
+
   desc 'Run all failed examples from previous run'
   Spec::Rake::SpecTask.new :failed do |task|
     ENV['USE_FSC'] = 'no'
@@ -64,6 +80,20 @@
     end
   end
 
+  namespace :spec_ci do
+    desc "Run all specs specifically with Ruby"
+    task :ruby do
+      puts "Running test suite using Ruby ..."
+      sh 'ruby -S rake spec_ci'
+    end
+
+    desc "Run all specs specifically with JRuby"
+    task :jruby do
+      puts "Running test suite using JRuby ..."
+      sh 'jruby -S rake spec_ci'
+    end
+  end
+
   task :clobber do
     rm_f 'failed'
     rm_rf '_reports'

Reply via email to