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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7b7869def18504a9c41c6bae22b4ab188fd4101
|
4
|
+
data.tar.gz: 93e72ce429f519ccc6c55ab483e73c8b1dca9510
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af07b77b591317891a261dd6b77eacb769dcfb32fdf5072763f81d8787204662aaefe456e95186fcdacac306b98bd2ae62843104d2d2ae2e34ac1a7a611760dd
|
7
|
+
data.tar.gz: 937a91770dd1e0325036f67ab32a4203cd4ffcf93d4b1e7a8e890537182973fac5129120ef99b2a62d1e16ec51a15fd4e89d3ece66575494d97ea74bf2b28bca
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
10
|
+
require 'cucumber/rake/task'
|
10
11
|
|
11
|
-
|
12
|
-
|
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
|
-
|
10
|
+
require 'rspec/core/rake_task'
|
10
11
|
|
11
|
-
|
12
|
-
|
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?
|
data/lib/knapsack_pro/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|