Permalink
Browse files

. distinguish unit tests and acceptance tests

  • Loading branch information...
1 parent 5a9a753 commit 075f14822d4e42738beab228ed6100ca66684bfd @kschiess committed Mar 1, 2011
Showing with 10 additions and 4 deletions.
  1. +10 −4 Rakefile
View
@@ -1,13 +1,18 @@
-
require "rubygems"
require "rake/rdoctask"
require 'rspec/core/rake_task'
require "rake/gempackagetask"
-
-desc "Run all examples"
+desc "Run all tests: Exhaustive."
RSpec::Core::RakeTask.new
+namespace :spec do
+ desc "Only run unit tests: Fast. "
+ RSpec::Core::RakeTask.new(:unit) do |task|
+ task.pattern = "spec/parslet/**/*_spec.rb"
+ end
+end
+
task :default => :spec
require 'sdoc'
@@ -27,10 +32,11 @@ desc 'Clear out RDoc'
task :clean => [:clobber_rdoc, :clobber_package]
# This task actually builds the gem.
+task :gem => :spec
spec = eval(File.read('parslet.gemspec'))
+
desc "Generate the gem package."
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
-task :gem => :spec

0 comments on commit 075f148

Please sign in to comment.