Permalink
Browse files

Rakefile now supports rake report:all which runs all of the reports. …

…All reports can be accessed via the html file reports/reports.html, Default Rakefile task now shows tasks instead of doing nothing, RSpec Error report uses latest version of RSpec
  • Loading branch information...
1 parent 4fcad94 commit d630d96c7bd2a6487fbeadb4597cef6729e07f9c Ryantm committed Jun 19, 2007
Showing with 1,133 additions and 1,646 deletions.
  1. +11 −1 Rakefile
  2. +4 −3 bin/reports/rspec_error_info.rb
  3. +48 −48 rake/rubinius_spec_tasks.rb
  4. +0 −599 reports/completeness.html
  5. +12 −0 reports/reports.haml
  6. +15 −0 reports/reports.html
  7. +922 −838 reports/rspec_errors.html
  8. +121 −157 reports/self_hosting_errors.html
View
@@ -1,6 +1,11 @@
require 'rake/legacy_tasks'
+require 'rake/rubinius_spec_tasks'
-task :default => :spec
+task :default => :tasks
+
+task :tasks do
+ puts `rake -T`
+end
def newer?(file, cmp)
File.exists?(cmp) and File.mtime(cmp) >= File.mtime(file)
@@ -101,6 +106,10 @@ namespace :spec do
system 'bin/mspec spec > spec/diffs/base.txt'
end
end
+
+ task :r2r do
+ puts ARGV.inspect
+ end
end
# build tasks
@@ -224,6 +233,7 @@ task :svn => 'svn:up'
namespace :svn do
desc "Revert runtime/*.rba then svn up"
task :up do
+ sh "svn revert reports/*.html"
sh "svn revert runtime/*.rba"
puts `svn up`
end
@@ -1,6 +1,7 @@
require 'timeout'
-RSPEC_PATH = File.expand_path(File.dirname(__FILE__) + '/../../externals/rspec-0.8.2/lib')
-files = `find #{RSPEC_PATH} -type f`.scan(/^[^.].+?\.rb$/).map {|f| f.split('rspec-0.8.2/lib/')[1].split('.rb')[0] }
+RSPEC_PATH = File.expand_path(File.dirname(__FILE__) + '/../../externals/rspec-1.0.5/lib')
+files =
+`find #{RSPEC_PATH} -type f`.scan(/^[^.].+?\.rb$/).map {|f| f.split('rspec-1.0.5/lib/')[1].split('.rb')[0] }
results = files.map do |path|
begin
@@ -10,7 +11,7 @@
end
[path, output]
rescue Timeout::Error
- [path, 'Timed out (infinite loop?)']
+ [path, 'Timed out.']
end
end
@@ -15,60 +15,60 @@ def from_root_dir
Dir.chdir(dir)
end
-namespace :spec do
- namespace :setup do
- task :subtend do
- Dir[File.join(ROOT,"spec/subtend/**/Rakefile")].each do |rakefile|
- sh "rake -f #{rakefile}"
- end
- end
- end
-
- spec_targets = %w(compiler core incompatible language library parser rubinius)
- # Build a spec:<task_name> for each group of Rubinius specs
- spec_targets.each do |group|
- desc "Run '#{group}' specifications"
- task group do
- from_root_dir do
- sh "bin/specrunner spec/#{group}"
- end
- end
- end
-
- desc "Run 'subtend' specifications"
- task :subtend => "spec:setup:subtend" do
- from_root_dir do
- sh "bin/specrunner spec/subtend"
- end
- end
+#namespace :spec do
+# namespace :setup do
+# task :subtend do
+# Dir[File.join(ROOT,"spec/subtend/**/Rakefile")].each do |rakefile|
+# sh "rake -f #{rakefile}"
+# end
+# end
+# end
+#
+# spec_targets = %w(compiler core incompatible language library parser rubinius)
+# # Build a spec:<task_name> for each group of Rubinius specs
+# spec_targets.each do |group|
+# desc "Run '#{group}' specifications"
+# task group do
+# from_root_dir do
+# sh "bin/specrunner spec/#{group}"
+# end
+# end
+# end
+#
+# desc "Run 'subtend' specifications"
+# task :subtend => "spec:setup:subtend" do
+# from_root_dir do
+# sh "bin/specrunner spec/subtend"
+# end
+# end
# Specdiffs to make it easier to see what your changes have affected :)
- desc 'Run specs and produce a diff against current base'
- task :diff => 'diff:run'
-
- namespace :diff do
- desc 'Run specs and produce a diff against current base'
- task :run do
- from_root_dir do
- system 'bin/specrunner spec > /tmp/rbs_specdiff'
- system 'diff -u spec/diffs/base.txt /tmp/rbs_specdiff'
- system 'rm /tmp/rbs_specdiff'
- end
- end
+# desc 'Run specs and produce a diff against current base'
+# task :diff => 'diff:run'
+#
+# namespace :diff do
+# desc 'Run specs and produce a diff against current base'
+# task :run do
+# from_root_dir do
+# system 'bin/specrunner spec > /tmp/rbs_specdiff'
+# system 'diff -u spec/diffs/base.txt /tmp/rbs_specdiff'
+# system 'rm /tmp/rbs_specdiff'
+# end
+# end
- desc 'Replace the base spec file with a new one'
- task :replace do
- from_root_dir do
- system 'bin/specrunner spec > spec/diffs/base.txt'
- end
- end
- end
-end
+# desc 'Replace the base spec file with a new one'
+# task :replace do
+# from_root_dir do
+# system 'bin/specrunner spec > spec/diffs/base.txt'
+# end
+# end
+# end
+#end
#task :report => 'report:all' # default
namespace :report do
- #desc "Build all reports"
- #task :all => [:completeness, :rspec_errors]
+ desc "Build all reports"
+ task :all => [:rspec_errors, :self_hosting_errors]
#desc "Build completeness report"
#task :completeness do
Oops, something went wrong.

0 comments on commit d630d96

Please sign in to comment.