knapsack report generation

This commit is contained in:
Maikel Linke
2016-01-08 18:42:03 +11:00
parent 71569324f4
commit 749061d60a
5 changed files with 23 additions and 6 deletions

View File

@@ -15,11 +15,12 @@ env:
- TZ="Australia/Melbourne"
- TIMEZONE="Australia/Melbourne"
matrix:
- TEST_CASES="./spec/features/admin" GITHUB_DEPLOY="true"
- TEST_CASES="./spec/features/consumer ./spec/serializers ./spec/performance"
- TEST_CASES="./spec/models"
- TEST_CASES="./spec/controllers ./spec/views ./spec/jobs"
- TEST_CASES="./spec/requests ./spec/helpers ./spec/mailers ./spec/lib" KARMA="true"
- TEST_CASES="./spec"
# - TEST_CASES="./spec/features/admin" GITHUB_DEPLOY="true"
# - TEST_CASES="./spec/features/consumer ./spec/serializers ./spec/performance"
# - TEST_CASES="./spec/models"
# - TEST_CASES="./spec/controllers ./spec/views ./spec/jobs"
# - TEST_CASES="./spec/requests ./spec/helpers ./spec/mailers ./spec/lib" KARMA="true"
before_script:
- cp config/database.travis.yml config/database.yml
@@ -36,7 +37,7 @@ before_script:
script:
- '[ "$KARMA" = "true" ] && bundle exec rake karma:run || echo "Skipping karma run"'
- "bundle exec rspec $TEST_CASES"
- "KNAPSACK_GENERATE_REPORT=true bundle exec rspec $TEST_CASES"
after_success:
- >

View File

@@ -105,6 +105,7 @@ group :test, :development do
gem 'json_spec'
gem 'unicorn-rails'
gem 'atomic'
gem 'knapsack'
end
group :test do

View File

@@ -431,6 +431,9 @@ GEM
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
kgio (2.9.3)
knapsack (1.5.1)
rake
timecop (>= 0.1.0)
launchy (2.1.2)
addressable (~> 2.3)
letter_opener (1.0.0)
@@ -684,6 +687,7 @@ DEPENDENCIES
immigrant
jquery-rails
json_spec
knapsack
letter_opener
momentjs-rails
newrelic_rpm
@@ -726,3 +730,6 @@ DEPENDENCIES
whenever
wicked_pdf
wkhtmltopdf-binary
BUNDLED WITH
1.10.6

View File

@@ -5,3 +5,5 @@
require File.expand_path('../config/application', __FILE__)
Openfoodnetwork::Application.load_tasks
Knapsack.load_tasks if defined?(Knapsack)

View File

@@ -1,3 +1,9 @@
require 'knapsack'
# CUSTOM_CONFIG_GOES_HERE
Knapsack::Adapters::RSpecAdapter.bind
require 'rubygems'
# Require pry when we're not inside Travis-CI