From b60473b871ba4752824839be8ab81b4f41045c45 Mon Sep 17 00:00:00 2001 From: Owen Campbell Date: Thu, 25 Jul 2013 12:48:16 +0100 Subject: [PATCH] Adds acceptance testing to deployment rake task --- lib/tasks/deploy.rake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/tasks/deploy.rake b/lib/tasks/deploy.rake index 5056fea..d910f42 100644 --- a/lib/tasks/deploy.rake +++ b/lib/tasks/deploy.rake @@ -12,10 +12,12 @@ namespace :deploy do task env do current_branch = `git branch | grep ^* | awk '{ print $2 }'`.strip - puts "Running test specs" - Rake::Task['test:spec'].invoke + puts "Running unit tests" + Rake::Task['spec'].invoke + + puts "Running acceptance tests" + Rake::Task['cucumber'].invoke - puts "All test specs passed" puts "Validating git status" Rake::Task['deploy:before_deploy'].invoke(env, current_branch)