This repository has been archived by the owner on Apr 5, 2022. It is now read-only.
Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
kood/Rakefile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
40 lines (34 sloc)
848 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env rake | |
# To run all tests at once, simply do: | |
# bundle exec rake test | |
# | |
# To run unit tests: | |
# bundle exec rake test:unit | |
# | |
# To turn specs with verbose output: | |
# bundle exec rake test:spec TESTOPTS="--verbose" | |
# | |
# For additional help: | |
# rake --tasks | |
# | |
require 'rake/testtask' | |
require 'bundler/gem_tasks' | |
namespace :test do | |
Rake::TestTask.new(:spec) do |t| | |
ENV["RACK_ENV"] = "test" | |
t.libs << "spec" | |
t.pattern = "spec/**/*_spec.rb" | |
end | |
Rake::TestTask.new(:unit) do |t| | |
ENV["RACK_ENV"] = "test" | |
t.libs << "test" | |
t.pattern = "test/**/*_test.rb" | |
end | |
task :all => [:unit, :spec] | |
end | |
desc "Run all test suites" | |
task :test => 'test:all' | |
desc "Uninstall the current version of kood" | |
task :uninstall do | |
puts `gem uninstall -x kood` # -x flag uninstalls executables too without confirmation | |
end |