rainforest-cli 1.3.0 → 1.3.1

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: 5eb860284f17f1642d76697d195b5352cd641f52
4
- data.tar.gz: 18786715493b49e4dc981fa020f80c1083f7d3f1
3
+ metadata.gz: 855968ae7a28f0b1023fd41714fefc0fca6b5ad2
4
+ data.tar.gz: b4eb76a7382c5645811cbb4cbd97a12eb9385d2a
5
5
  SHA512:
6
- metadata.gz: 39ecb9e62e9cf82131dcdf141681da172cac675b74506de7376f223a68682fd5cc54b06811a8c2f0238741e8dcdb183efc16d26c20adcad1373931e40f8e0f8e
7
- data.tar.gz: 8d40cb3cefe445792c033790806a921dadd2db1665ee48712c6a6ad0039c0c4b1c9ec7586d060dfa1b547f1d1d83c51fbc4e0a9c031004f2ddc44bd3685211ed
6
+ metadata.gz: 83cf3f5e28a712add5c8077beecfdd869627f911bf9ad66aae75abb7090204ada77c19f450133437f028ca152cc8786198651b5ec4e5b4e168e00025988730d3
7
+ data.tar.gz: 5615003a01351ffd1d9acd7ba924580f767c2a2d72f1e14ead0be38097e83c3402a2343d71b58b0fa7fc99b77d80f562ea1bec11b34ea272186cc084beb53bd9
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Rainforest CLI Changelog
2
2
 
3
- # 1.3.0 - 7th April 2016
3
+ ## 1.3.1 - 11th April 2016
4
+ - Support crowd selection
5
+
6
+ ## 1.3.0 - 7th April 2016
4
7
  - Export tests with embedded tests unflattened. (0ed4c62cac8a0d5fbd98f03190d3c18c48ac7119,
5
8
  @epaulet)
6
9
  - Add option to save API token in environment rather than specifying in commands.
@@ -17,7 +20,7 @@ site ID reference. (7b628b12879f5c2230181d5e4badf785c26c8035, @epaulet)
17
20
  - Add support for exporting specified tests using test IDs found on dashboard.
18
21
  (69d104d7452dcb2ba7925d1de86532f250b72f41, @ziahamza)
19
22
 
20
- # 1.2.2 - 21st March 2016
23
+ ## 1.2.2 - 21st March 2016
21
24
  - Add support for Ruby 1.9.3 for easier usage on CircleCI. (16d74306a160c0fca8d34bc32493119051179c90, @epaulet)
22
25
 
23
26
  ## 1.2.1 - 18th March 2016
data/README.md CHANGED
@@ -124,6 +124,7 @@ Popular command line options are:
124
124
  - `--browsers ie8` or `--browsers ie8,chrome` - specify the browsers you wish to run against. This overrides the test own settings. Valid browsers can be found in your account settings.
125
125
  - `--tag run-me` - only run tests which have this tag (recommended if you have lots of [test-steps](http://docs.rainforestqa.com/pages/example-test-suite.html#test_steps))!)
126
126
  - `--site-id` - only run tests for a specific site. Get in touch with us for help on getting that you site id if you are unable to.
127
+ - `--folder ID` - run tests in specified folder.
127
128
  - `--environment-id` - run your tests using this environment. Otherwise it will use your default environment
128
129
  - `--conflict OPTION` - use the `abort` option to abort any runs in progress in the same environment as your new run. use the `abort-all` option to abort all runs in progress.
129
130
  - `--fg` - results in the foreground - rainforest-cli will not return until the run is complete. This is what you want to make the build pass / fail dependent on rainforest results
@@ -6,7 +6,7 @@ module RainforestCli
6
6
  attr_writer :file_name, :tags
7
7
  attr_reader :command, :token, :tags, :conflict, :browsers, :site_id, :environment_id,
8
8
  :import_file_name, :import_name, :custom_url, :description, :folder,
9
- :debug, :file_name, :test_folder, :embed_tests, :app_source_url
9
+ :debug, :file_name, :test_folder, :embed_tests, :app_source_url, :crowd
10
10
 
11
11
  # Note, not all of these may be available to your account
12
12
  # also, we may remove this in the future.
@@ -61,14 +61,14 @@ module RainforestCli
61
61
  @file_name = value
62
62
  end
63
63
 
64
- opts.on('--app-source-url FILE', 'Import step variables; CSV data') do |value|
65
- @app_source_url = value
66
- end
67
-
68
64
  opts.on('--test-folder FILE_PATH', 'Specify the test folder. Defaults to spec/rainforest if not set.') do |value|
69
65
  @test_folder = value
70
66
  end
71
67
 
68
+ opts.on('--crowd TYPE', 'Specify the crowd type, defaults to "default". Options are default or on_premise_crowd if available for your account.') do |value|
69
+ @crowd = value
70
+ end
71
+
72
72
  opts.on('--import-variable-csv-file FILE', 'Import step variables; CSV data') do |value|
73
73
  @import_file_name = value
74
74
  end
@@ -129,6 +129,10 @@ module RainforestCli
129
129
  @embed_tests = true
130
130
  end
131
131
 
132
+ opts.on('--app-source-url FILE', 'URL for mobile app download (in beta)') do |value|
133
+ @app_source_url = value
134
+ end
135
+
132
136
  opts.on_tail('--help', 'Display help message and exit') do |_value|
133
137
  puts opts
134
138
  exit 0
@@ -100,6 +100,7 @@ module RainforestCli
100
100
  end
101
101
 
102
102
  post_opts[:app_source_url] = options.app_source_url if options.app_source_url
103
+ post_opts[:crowd] = options.crowd if options.crowd
103
104
  post_opts[:conflict] = options.conflict if options.conflict
104
105
  post_opts[:browsers] = options.browsers if options.browsers
105
106
  post_opts[:site_id] = options.site_id if options.site_id
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module RainforestCli
3
- VERSION = '1.3.0'
3
+ VERSION = '1.3.1'
4
4
  end
data/spec/options_spec.rb CHANGED
@@ -19,6 +19,11 @@ describe RainforestCli::OptionParser do
19
19
  its(:import_name) { should == 'some_name' }
20
20
  end
21
21
 
22
+ context 'crowd' do
23
+ let(:args) { ['--crowd', 'some_name'] }
24
+ its(:crowd) { should == 'some_name' }
25
+ end
26
+
22
27
  context 'app_source_url' do
23
28
  let(:args) { ['--app-source-url', 'some_app'] }
24
29
  its(:app_source_url) { should == 'some_app' }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rainforest-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Russell Smith
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-07 00:00:00.000000000 Z
12
+ date: 2016-04-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -268,4 +268,3 @@ test_files:
268
268
  - spec/validation-examples/parse_errors/no_question_mark.rfml
269
269
  - spec/validation-examples/parse_errors/no_rfml_id.rfml
270
270
  - spec/validator_spec.rb
271
- has_rdoc: