[DRE-commits] [ruby-did-you-mean] 02/03: run tests with rake

Antonio Terceiro terceiro at moszumanska.debian.org
Tue Jan 19 16:59:21 UTC 2016


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

terceiro pushed a commit to branch master
in repository ruby-did-you-mean.

commit a03261162af2a89af340e965a6bc3c99434c3e91
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Tue Jan 19 14:34:48 2016 -0200

    run tests with rake
    
    Also run only the tests that upstream runs on `rake test`
---
 debian/ruby-test-files.yaml | 12 ------------
 debian/ruby-tests.rake      | 15 +++++++++++++++
 2 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/debian/ruby-test-files.yaml b/debian/ruby-test-files.yaml
deleted file mode 100644
index c8ff812..0000000
--- a/debian/ruby-test-files.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
----
-- test/core_ext/name_error_extension_test.rb
-- test/correctable/class_name_test.rb
-- test/correctable/method_name_test.rb
-- test/correctable/uncorrectable_name_test.rb
-- test/correctable/variable_name_test.rb
-- test/edit_distance/jaro_winkler_test.rb
-- test/extra_features/initializer_name_correction_test.rb
-- test/extra_features/method_name_checker_test.rb
-- test/spell_checker_test.rb
-- test/test_helper.rb
-- test/verbose_formatter_test.rb
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..dedabf9
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,15 @@
+if RUBY_VERSION >= '2.3'
+  require 'gem2deb/rake/testtask'
+  Gem2Deb::Rake::TestTask.new do |t|
+    t.libs << "test"
+    t.test_files = Dir['test/**/*_test.rb'].reject do |path|
+      /(verbose_formatter|extra_features)/ =~ path
+    end
+    t.verbose = true
+  end
+else
+  task :default do
+    puts 'Skipping tests on Ruby < 2.3'
+  end
+end
+

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



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