[DRE-commits] [nanoc] 02/09: use ruby-tests.rb to run tests

Cédric Boutillier boutil at moszumanska.debian.org
Sun Feb 9 23:31:13 UTC 2014


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository nanoc.

commit dd9d51d30670910d0e8cbdbe714ef06338b97c52
Author: Cédric Boutillier <boutil at debian.org>
Date:   Tue Oct 1 15:53:32 2013 +0200

    use ruby-tests.rb to run tests
---
 debian/ruby-tests.rake | 20 --------------------
 debian/ruby-tests.rb   | 19 +++++++++++++++++++
 2 files changed, 19 insertions(+), 20 deletions(-)

diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
deleted file mode 100644
index 36a2d37..0000000
--- a/debian/ruby-tests.rake
+++ /dev/null
@@ -1,20 +0,0 @@
-require 'nanoc'
-require 'minitest/unit'
-
-require 'yard'
-
-task :test do
-    $VERBOSE = 1
-
-    #$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/..'))
-
-    # require our test helper so we don't have to in each individual test
-    require 'test/helper'
-
-    test_files = Dir['test/**/*_spec.rb'] + Dir['test/**/test_*.rb']
-    test_files.each { |f| require f }
-
-    exit MiniTest::Unit.new.run( %w(--verbose ))
-end
-
-task :default => :test
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
new file mode 100644
index 0000000..906391b
--- /dev/null
+++ b/debian/ruby-tests.rb
@@ -0,0 +1,19 @@
+Encoding.default_external = "UTF-8" if defined? Encoding
+
+#require 'nanoc'
+require 'minitest/autorun'
+
+#needed for some tests
+require 'yard'
+
+#$VERBOSE = 1
+
+#$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/..'))
+
+# require our test helper so we don't have to in each individual test
+require 'test/helper'
+
+test_files = Dir['test/base/core_ext/*_spec.rb'] + Dir['test/{base,cli,data_sources,filters,helpers,tasks}/**/test_*.rb']
+#test_files = Dir['test/filters/test_*.rb']
+#test_files = Dir['test/filters/test_bluecloth.rb']
+test_files.each { |f| require f }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/nanoc.git



More information about the Pkg-ruby-extras-commits mailing list