tddium-preview 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tddium-preview (0.0.5)
4
+ tddium-preview (0.0.6)
5
5
  highline
6
6
  json
7
7
  tddium_client (>= 0.0.6)
data/lib/tddium.rb CHANGED
@@ -101,6 +101,7 @@ class Tddium < Thor
101
101
  desc "spec", "Run the test suite"
102
102
  method_option :environment, :type => :string, :default => nil
103
103
  method_option :user_data_file, :type => :string, :default => nil
104
+ method_option :max_parallelism, :type => :numeric, :default => nil
104
105
  def spec
105
106
  set_default_environment(options[:environment])
106
107
  return unless git_repo? && tddium_settings && suite_for_current_branch?
@@ -117,6 +118,9 @@ class Tddium < Thor
117
118
  end
118
119
  end
119
120
 
121
+ # Set max parallelism param
122
+ test_execution_params[:max_parallelism] = options[:max_parallelism] if options[:max_parallelism]
123
+
120
124
  start_time = Time.now
121
125
 
122
126
  # Call the API to get the suite and its tests
@@ -3,5 +3,5 @@ Copyright (c) 2011 Solano Labs All Rights Reserved
3
3
  =end
4
4
 
5
5
  module TddiumVersion
6
- VERSION = "0.0.6"
6
+ VERSION = "0.0.7"
7
7
  end
data/spec/tddium_spec.rb CHANGED
@@ -656,6 +656,13 @@ describe Tddium do
656
656
  end
657
657
  end
658
658
 
659
+ context "--max_parallelism=5" do
660
+ it "should send max_parallelism=5 to '#{Tddium::Api::Path::START_TEST_EXECUTIONS}'" do
661
+ call_api_should_receive(:method => :post, :path => /#{Tddium::Api::Path::START_TEST_EXECUTIONS}$/, :params => hash_including(:max_parallelism => 5))
662
+ run_spec(tddium, :max_parallelism => 5)
663
+ end
664
+ end
665
+
659
666
  it_should_behave_like "sending the api key"
660
667
 
661
668
  context "'POST #{Tddium::Api::Path::START_TEST_EXECUTIONS}' is successful" do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tddium-preview
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jay Moorthi