tddium-preview 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/lib/tddium.rb +4 -0
- data/lib/tddium/version.rb +1 -1
- data/spec/tddium_spec.rb +7 -0
- metadata +1 -1
data/Gemfile.lock
CHANGED
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
|
data/lib/tddium/version.rb
CHANGED
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
|