knapsack_pro 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 331541f2ecd345ac6c68562799b8b00d774a82ee
4
- data.tar.gz: 6f2c4dc59a7283f77351fd640dc2632c57db07e1
3
+ metadata.gz: e7b7869def18504a9c41c6bae22b4ab188fd4101
4
+ data.tar.gz: 93e72ce429f519ccc6c55ab483e73c8b1dca9510
5
5
  SHA512:
6
- metadata.gz: ceaace21c1274a31e97c0ce6e6d7addb1c99b834242c45dc558f783845b03dc1720eabcf2b1d36325da61f8f96955b35574fd64d64453e5cde9e1b5d131aee59
7
- data.tar.gz: b966ee4bb2bc7f7938bbaec8a4db8e850618645177ed36e88fcac5430d11be66eaacf26037955601ff03cac61235ddb5126d22b024a361640c0e28d02dc3f9cc
6
+ metadata.gz: af07b77b591317891a261dd6b77eacb769dcfb32fdf5072763f81d8787204662aaefe456e95186fcdacac306b98bd2ae62843104d2d2ae2e34ac1a7a611760dd
7
+ data.tar.gz: 937a91770dd1e0325036f67ab32a4203cd4ffcf93d4b1e7a8e890537182973fac5129120ef99b2a62d1e16ec51a15fd4e89d3ece66575494d97ea74bf2b28bca
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  * TODO
4
4
 
5
+ ### 0.14.0
6
+
7
+ * Use rake invoke for rspec and cucumber tasks.
8
+
9
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v0.13.0...v0.14.0
10
+
5
11
  ### 0.13.0
6
12
 
7
13
  * Add installer to get started with the knapsack_pro gem.
@@ -3,13 +3,21 @@ module KnapsackPro
3
3
  class CucumberRunner < BaseRunner
4
4
  def self.run(args)
5
5
  ENV['KNAPSACK_PRO_TEST_SUITE_TOKEN'] = KnapsackPro::Config::Env.test_suite_token_cucumber
6
+ ENV['KNAPSACK_PRO_RECORDING_ENABLED'] = 'true'
6
7
 
7
8
  runner = new(KnapsackPro::Adapters::CucumberAdapter)
8
9
 
9
- cmd = %Q[KNAPSACK_PRO_RECORDING_ENABLED=true KNAPSACK_PRO_TEST_SUITE_TOKEN=#{ENV['KNAPSACK_PRO_TEST_SUITE_TOKEN']} bundle exec cucumber #{args} -- #{runner.stringify_test_file_paths}]
10
+ require 'cucumber/rake/task'
10
11
 
11
- Kernel.system(cmd)
12
- Kernel.exit($?.exitstatus) unless $?.exitstatus.zero?
12
+ task_name = 'knapsack_pro:cucumber_run'
13
+ if Rake::Task.task_defined?(task_name)
14
+ Rake::Task[task_name].clear
15
+ end
16
+
17
+ Cucumber::Rake::Task.new(task_name) do |t|
18
+ t.cucumber_opts = "#{args} --require #{runner.test_dir} -- #{runner.stringify_test_file_paths}"
19
+ end
20
+ Rake::Task[task_name].invoke
13
21
  end
14
22
  end
15
23
  end
@@ -3,13 +3,22 @@ module KnapsackPro
3
3
  class RSpecRunner < BaseRunner
4
4
  def self.run(args)
5
5
  ENV['KNAPSACK_PRO_TEST_SUITE_TOKEN'] = KnapsackPro::Config::Env.test_suite_token_rspec
6
+ ENV['KNAPSACK_PRO_RECORDING_ENABLED'] = 'true'
6
7
 
7
8
  runner = new(KnapsackPro::Adapters::RSpecAdapter)
8
9
 
9
- cmd = %Q[KNAPSACK_PRO_RECORDING_ENABLED=true KNAPSACK_PRO_TEST_SUITE_TOKEN=#{ENV['KNAPSACK_PRO_TEST_SUITE_TOKEN']} bundle exec rspec #{args} --default-path #{runner.test_dir} -- #{runner.stringify_test_file_paths}]
10
+ require 'rspec/core/rake_task'
10
11
 
11
- Kernel.system(cmd)
12
- Kernel.exit($?.exitstatus) unless $?.exitstatus.zero?
12
+ task_name = 'knapsack_pro:rspec_run'
13
+ if Rake::Task.task_defined?(task_name)
14
+ Rake::Task[task_name].clear
15
+ end
16
+
17
+ RSpec::Core::RakeTask.new(task_name) do |t|
18
+ t.rspec_opts = "#{args} --default-path #{runner.test_dir}"
19
+ t.pattern = runner.test_file_paths
20
+ end
21
+ Rake::Task[task_name].invoke
13
22
  end
14
23
  end
15
24
  end
@@ -6,7 +6,7 @@ module KnapsackPro
6
6
 
7
7
  runner = new(KnapsackPro::Adapters::SpinachAdapter)
8
8
 
9
- cmd = %Q[KNAPSACK_PRO_RECORDING_ENABLED=true KNAPSACK_PRO_TEST_SUITE_TOKEN=#{ENV['KNAPSACK_PRO_TEST_SUITE_TOKEN']} bundle exec spinach #{args} -- #{runner.stringify_test_file_paths}]
9
+ cmd = %Q[KNAPSACK_PRO_RECORDING_ENABLED=true KNAPSACK_PRO_TEST_SUITE_TOKEN=#{ENV['KNAPSACK_PRO_TEST_SUITE_TOKEN']} bundle exec spinach #{args} --features_path #{runner.test_dir} -- #{runner.stringify_test_file_paths}]
10
10
 
11
11
  Kernel.system(cmd)
12
12
  Kernel.exit($?.exitstatus) unless $?.exitstatus.zero?
@@ -1,3 +1,3 @@
1
1
  module KnapsackPro
2
- VERSION = '0.13.0'
2
+ VERSION = '0.14.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knapsack_pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-17 00:00:00.000000000 Z
11
+ date: 2016-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake