Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds simplecov

  • Loading branch information...
commit 79b88e0294a68ba7d92f91c8ba5469bb7faceed5 1 parent 17afe22
@hsume2 hsume2 authored
View
1  Gemfile
@@ -13,3 +13,4 @@ gem 'minitest-reporters', :platform => [:ruby_19, :ruby_20] # https://github.com
gem 'guard-shell'
gem 'appraisal'
gem 'bump'
+gem 'simplecov', :require => false, :group => :test
View
6 Gemfile.lock
@@ -37,6 +37,7 @@ GEM
powerbar
mocha (0.12.3)
metaclass (~> 0.0.1)
+ multi_json (1.7.7)
powerbar (1.0.9)
ansi (~> 1.4.0)
hashie (>= 1.1.0)
@@ -47,6 +48,10 @@ GEM
shoulda-matchers (~> 1.0.0)
shoulda-context (1.0.0)
shoulda-matchers (1.0.0)
+ simplecov (0.7.1)
+ multi_json (~> 1.0)
+ simplecov-html (~> 0.7.1)
+ simplecov-html (0.7.1)
state_machine (1.2.0)
test-unit (2.3.0)
thor (0.14.6)
@@ -67,3 +72,4 @@ DEPENDENCIES
minitest-reporters
mocha
shoulda
+ simplecov
View
6 Rakefile
@@ -28,6 +28,12 @@ task :default do
sh "rake appraisal:install appraisal:relativize && rake appraisal test"
end
+desc "Run all tests with coverage."
+task :coverage do
+ ENV['COVERAGE'] = 'true'
+ Rake::Task['default'].invoke
+end
+
namespace :appraisal do
task :relativize do
Dir["gemfiles/*.lock"].each do |file|
View
1  gemfiles/rails2.gemfile
@@ -13,5 +13,6 @@ gem "minitest-reporters", :platform=>[:ruby_19, :ruby_20]
gem "guard-shell"
gem "appraisal"
gem "bump"
+gem "simplecov", :require=>false, :group=>:test
gemspec :path=>"../"
View
10 gemfiles/rails2.gemfile.lock
@@ -3,7 +3,7 @@ PATH
specs:
call_center (1.0.4)
builder
- hsume2-state_machine (~> 1.0.5)
+ state_machine (~> 1.2.0)
GEM
remote: https://rubygems.org/
@@ -28,7 +28,6 @@ GEM
guard (>= 0.2.2)
test-unit (~> 2.2)
hashie (2.0.5)
- hsume2-state_machine (1.0.5)
metaclass (0.0.1)
minitest (3.3.0)
minitest-reporters (0.14.20)
@@ -38,6 +37,7 @@ GEM
powerbar
mocha (0.13.3)
metaclass (~> 0.0.1)
+ multi_json (1.7.7)
powerbar (1.0.11)
ansi (~> 1.4.0)
hashie (>= 1.1.0)
@@ -48,6 +48,11 @@ GEM
shoulda-matchers (~> 1.0.0)
shoulda-context (1.0.2)
shoulda-matchers (1.0.0)
+ simplecov (0.7.1)
+ multi_json (~> 1.0)
+ simplecov-html (~> 0.7.1)
+ simplecov-html (0.7.1)
+ state_machine (1.2.0)
test-unit (2.5.5)
thor (0.14.6)
@@ -67,3 +72,4 @@ DEPENDENCIES
minitest-reporters
mocha
shoulda
+ simplecov
View
1  gemfiles/rails30.gemfile
@@ -12,6 +12,7 @@ gem "minitest-reporters", :platform=>[:ruby_19, :ruby_20]
gem "guard-shell"
gem "appraisal"
gem "bump"
+gem "simplecov", :require=>false, :group=>:test
gem "actionpack", "3.0.20"
gemspec :path=>"../"
View
10 gemfiles/rails30.gemfile.lock
@@ -3,7 +3,7 @@ PATH
specs:
call_center (1.0.4)
builder
- hsume2-state_machine (~> 1.0.5)
+ state_machine (~> 1.2.0)
GEM
remote: https://rubygems.org/
@@ -42,7 +42,6 @@ GEM
guard (>= 0.2.2)
test-unit (~> 2.2)
hashie (2.0.5)
- hsume2-state_machine (1.0.5)
i18n (0.5.0)
metaclass (0.0.1)
minitest (3.3.0)
@@ -53,6 +52,7 @@ GEM
powerbar
mocha (0.13.3)
metaclass (~> 0.0.1)
+ multi_json (1.7.7)
powerbar (1.0.11)
ansi (~> 1.4.0)
hashie (>= 1.1.0)
@@ -68,6 +68,11 @@ GEM
shoulda-context (1.1.2)
shoulda-matchers (2.1.0)
activesupport (>= 3.0.0)
+ simplecov (0.7.1)
+ multi_json (~> 1.0)
+ simplecov-html (~> 0.7.1)
+ simplecov-html (0.7.1)
+ state_machine (1.2.0)
test-unit (2.5.5)
thor (0.14.6)
tzinfo (0.3.37)
@@ -88,3 +93,4 @@ DEPENDENCIES
minitest-reporters
mocha
shoulda
+ simplecov
View
1  gemfiles/rails32.gemfile
@@ -12,6 +12,7 @@ gem "minitest-reporters", :platform=>[:ruby_19, :ruby_20]
gem "guard-shell"
gem "appraisal"
gem "bump"
+gem "simplecov", :require=>false, :group=>:test
gem "actionpack", "3.2.13"
gemspec :path=>"../"
View
9 gemfiles/rails32.gemfile.lock
@@ -3,7 +3,7 @@ PATH
specs:
call_center (1.0.4)
builder
- hsume2-state_machine (~> 1.0.5)
+ state_machine (~> 1.2.0)
GEM
remote: https://rubygems.org/
@@ -42,7 +42,6 @@ GEM
test-unit (~> 2.2)
hashie (2.0.5)
hike (1.2.3)
- hsume2-state_machine (1.0.5)
i18n (0.6.1)
journey (1.0.4)
metaclass (0.0.1)
@@ -70,11 +69,16 @@ GEM
shoulda-context (1.1.2)
shoulda-matchers (2.1.0)
activesupport (>= 3.0.0)
+ simplecov (0.7.1)
+ multi_json (~> 1.0)
+ simplecov-html (~> 0.7.1)
+ simplecov-html (0.7.1)
sprockets (2.2.2)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
+ state_machine (1.2.0)
test-unit (2.5.5)
thor (0.14.6)
tilt (1.4.1)
@@ -95,3 +99,4 @@ DEPENDENCIES
minitest-reporters
mocha
shoulda
+ simplecov
View
4 test/examples/dynamic_transition_call.rb
@@ -4,10 +4,6 @@ class DynamicTransitionCall
call_flow :state, :initial => :initial do
state :initial do
- response do |x|
- x.Say "Hello World"
- end
-
flow_if :agents_available? do
flow_if :via_phone? do
event :incoming_call, :to => :routing_on_phone
View
5 test/helper.rb
@@ -1,4 +1,9 @@
require 'bundler/setup'
+require 'simplecov'
+if ENV['COVERAGE']
+ SimpleCov.start
+ SimpleCov.command_name "Unit Tests (#{File.basename(ENV['BUNDLE_GEMFILE'])})"
+end
require 'test/unit'
require 'shoulda'
require 'mocha'
Please sign in to comment.
Something went wrong with that request. Please try again.