aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/Rakefile
diff options
context:
space:
mode:
authorMike McQuaid2016-09-23 07:57:35 +0100
committerGitHub2016-09-23 07:57:35 +0100
commit5cf3838f4292f3c47bc6a66e6d532fa290bcc5e0 (patch)
treed70a95c2da4ce92c716b37bbe4765d42017e29e1 /Library/Homebrew/cask/Rakefile
parentb7e7434bdbe59412505662df4ae919884990264b (diff)
parent5c5c416d1cb2df75f430c30a8044c82e041f530c (diff)
downloadbrew-5cf3838f4292f3c47bc6a66e6d532fa290bcc5e0.tar.bz2
Merge pull request #1041 from penman/parallel_tests
Parallelise test suite
Diffstat (limited to 'Library/Homebrew/cask/Rakefile')
-rw-r--r--Library/Homebrew/cask/Rakefile25
1 files changed, 4 insertions, 21 deletions
diff --git a/Library/Homebrew/cask/Rakefile b/Library/Homebrew/cask/Rakefile
index 25deee407..fe3e75c98 100644
--- a/Library/Homebrew/cask/Rakefile
+++ b/Library/Homebrew/cask/Rakefile
@@ -7,23 +7,9 @@ $LOAD_PATH.unshift(File.expand_path("#{homebrew_repo}/Library/Homebrew"))
$LOAD_PATH.unshift(File.expand_path("../lib", __FILE__))
namespace :test do
- Rake::TestTask.new(:minitest) do |t|
- # TODO: setting the --seed here is an ugly temporary hack, to remain only
- # until test-suite glitches are fixed.
- ENV["TESTOPTS"] = "--seed=14830" if ENV["TRAVIS"]
- t.pattern = "test/**/*_test.rb"
- t.libs << "test"
- end
-
- RSpec::Core::RakeTask.new(:rspec)
-
- desc "Run tests for minitest and RSpec with coverage"
- task :coverage do
- ENV["HOMEBREW_TESTS_COVERAGE"] = "1"
-
- Rake::Task[:test].invoke
-
- if ENV["CODECOV_TOKEN"]
+ namespace :coverage do
+ desc "Upload coverage to Codecov"
+ task :upload do
require "simplecov"
require "codecov"
formatter = SimpleCov::Formatter::Codecov.new
@@ -32,14 +18,11 @@ namespace :test do
end
end
-desc "Run tests for minitest and RSpec"
-task test: ["test:minitest", "test:rspec"]
-
RuboCop::RakeTask.new(:rubocop) do |t|
t.options = ["--force-exclusion"]
end
-task default: [:test, :rubocop]
+task default: [:rubocop]
desc "Open a REPL for debugging and experimentation"
task :console do