Permalink
Browse files

Add Rake task for running fast tests

  • Loading branch information...
1 parent 6d4e579 commit c4ab3979e7da4112f36fbd786093a6362f41efaa @laurilehmijoki committed Jun 25, 2013
Showing with 12 additions and 0 deletions.
  1. +6 −0 Rakefile
  2. +6 −0 features/instructions-for-new-user.feature
View
@@ -16,3 +16,9 @@ task "cucumber:wip" do
ENV['disable_parallel_processing'] = 'true'
sh "bundle exec cucumber --tags @wip"
end
+
+desc 'Run fast tests'
+task "cucumber:fast" do
+ ENV['disable_parallel_processing'] = 'true'
+ sh "bundle exec cucumber --tags ~@network-io --tags ~@starts-new-os-process"
+end
@@ -4,13 +4,15 @@ Feature: Instructions for a new user
I would like to get helpful feedback when running `s3_website`
So that I can upload my S3 website to S3 without headache
+ @starts-new-os-process
Scenario: Run s3_website in the wrong directory
When I run `s3_website push`
Then the output should contain:
"""
I can't find a website in any of the following directories: public/output, _site. Please specify the location of the website with the --site option.
"""
+ @starts-new-os-process
Scenario: Create placeholder config file
Given a directory named "_site"
When I run `s3_website cfg create`
@@ -25,6 +27,7 @@ Feature: Instructions for a new user
s3_bucket: your.blog.bucket.com
"""
+ @starts-new-os-process
Scenario: Run s3_website push for the first time
Given a directory named "_site"
When I run `s3_website push`
@@ -39,6 +42,7 @@ Feature: Instructions for a new user
s3_bucket: your.blog.bucket.com
"""
+ @starts-new-os-process
Scenario: Run s3_website with an empty configuration file
Given a directory named "_site"
And an empty file named "s3_website.yml"
@@ -51,6 +55,7 @@ Feature: Instructions for a new user
s3_bucket: your.blog.bucket.com
"""
+ @starts-new-os-process
Scenario: Run s3_website with a malformed configuration file
Given a directory named "_site"
And a file named "s3_website.yml" with:
@@ -67,6 +72,7 @@ Feature: Instructions for a new user
s3_bucket: your.blog.bucket.com
"""
+ @starts-new-os-process
Scenario: Run s3_website with a configuration file that does not contain a bucket
Given a directory named "_site"
And a file named "s3_website.yml" with:

0 comments on commit c4ab397

Please sign in to comment.