tddium-preview 0.6.0 → 0.6.1
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 -9
- data/lib/tddium/version.rb +1 -1
- data/spec/tddium_spec.rb +6 -8
- data/tddium.gemspec +7 -3
- metadata +8 -4
data/Gemfile.lock
CHANGED
data/lib/tddium.rb
CHANGED
@@ -188,23 +188,18 @@ class Tddium < Thor
|
|
188
188
|
# Push the latest code to git
|
189
189
|
exit_failure unless update_git_remote_and_push(suite_details)
|
190
190
|
|
191
|
-
# Get a list of files to be tested
|
192
|
-
test_files = Dir.glob(test_pattern).collect {|file_path| {:test_name => file_path}}
|
193
|
-
|
194
|
-
if test_files.empty?
|
195
|
-
exit_failure Text::Error::NO_MATCHING_FILES % test_pattern
|
196
|
-
end
|
197
|
-
|
198
191
|
# Create a session
|
199
192
|
new_session = call_api(:post, Api::Path::SESSIONS)
|
200
193
|
session_id = new_session["session"]["id"]
|
201
194
|
|
202
195
|
# Register the tests
|
203
|
-
call_api(:post, "#{Api::Path::SESSIONS}/#{session_id}/#{Api::Path::REGISTER_TEST_EXECUTIONS}", {:suite_id => current_suite_id, :
|
196
|
+
call_api(:post, "#{Api::Path::SESSIONS}/#{session_id}/#{Api::Path::REGISTER_TEST_EXECUTIONS}", {:suite_id => current_suite_id, :test_pattern => test_pattern})
|
204
197
|
|
205
|
-
say Text::Process::STARTING_TEST % test_files.size
|
206
198
|
# Start the tests
|
207
199
|
start_test_executions = call_api(:post, "#{Api::Path::SESSIONS}/#{session_id}/#{Api::Path::START_TEST_EXECUTIONS}", test_execution_params)
|
200
|
+
|
201
|
+
say Text::Process::STARTING_TEST % start_test_executions["started"]
|
202
|
+
|
208
203
|
tests_not_finished_yet = true
|
209
204
|
finished_tests = {}
|
210
205
|
test_statuses = Hash.new(0)
|
data/lib/tddium/version.rb
CHANGED
data/spec/tddium_spec.rb
CHANGED
@@ -917,12 +917,10 @@ describe Tddium do
|
|
917
917
|
|
918
918
|
context "test pattern" do
|
919
919
|
context "default test pattern" do
|
920
|
-
it "should POST the
|
920
|
+
it "should POST the test_pattern parameter" do
|
921
921
|
current_dir = Dir.pwd
|
922
922
|
call_api_should_receive(:params => {:suite_id => SAMPLE_SUITE_ID,
|
923
|
-
|
924
|
-
{:test_name => "#{current_dir}/spec/dog_spec.rb"},
|
925
|
-
{:test_name => "#{current_dir}/spec/mouse_spec.rb"}]})
|
923
|
+
:test_pattern => DEFAULT_TEST_PATTERN})
|
926
924
|
run_spec(tddium)
|
927
925
|
end
|
928
926
|
end
|
@@ -931,7 +929,7 @@ describe Tddium do
|
|
931
929
|
it "should POST the names of the file names extracted from the test_pattern parameter" do
|
932
930
|
current_dir = Dir.pwd
|
933
931
|
call_api_should_receive(:params => {:suite_id => SAMPLE_SUITE_ID,
|
934
|
-
:
|
932
|
+
:test_pattern => CUSTOM_TEST_PATTERN})
|
935
933
|
run_spec(tddium, {:test_pattern=>CUSTOM_TEST_PATTERN})
|
936
934
|
end
|
937
935
|
end
|
@@ -941,7 +939,7 @@ describe Tddium do
|
|
941
939
|
tddium.stub(:current_suite_options).and_return({'test_pattern'=>CUSTOM_TEST_PATTERN})
|
942
940
|
current_dir = Dir.pwd
|
943
941
|
call_api_should_receive(:params => {:suite_id => SAMPLE_SUITE_ID,
|
944
|
-
:
|
942
|
+
:test_pattern => CUSTOM_TEST_PATTERN})
|
945
943
|
run_spec(tddium)
|
946
944
|
end
|
947
945
|
end
|
@@ -1005,8 +1003,8 @@ describe Tddium do
|
|
1005
1003
|
run_spec(tddium)
|
1006
1004
|
end
|
1007
1005
|
|
1008
|
-
it "should tell the user '#{Tddium::Text::Process::STARTING_TEST %
|
1009
|
-
tddium.should_receive(:say).with(Tddium::Text::Process::STARTING_TEST %
|
1006
|
+
it "should tell the user '#{Tddium::Text::Process::STARTING_TEST % 1}'" do
|
1007
|
+
tddium.should_receive(:say).with(Tddium::Text::Process::STARTING_TEST % 1)
|
1010
1008
|
run_spec(tddium)
|
1011
1009
|
end
|
1012
1010
|
|
data/tddium.gemspec
CHANGED
@@ -16,9 +16,13 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.summary = %q{tddium Hosted Ruby Testing}
|
17
17
|
s.description = <<-EOF
|
18
18
|
tddium runs your rspec, cucumber, and test::unit tests in our managed
|
19
|
-
cloud environment.
|
20
|
-
|
21
|
-
|
19
|
+
cloud environment. You can run tests by hand, or enable our hosted CI to watch
|
20
|
+
your git repos automatically.
|
21
|
+
|
22
|
+
Tests run in parallel to save you time, and, if you use Rails, tddium takes care
|
23
|
+
of setting up fresh isolated DB instances for each test instance.
|
24
|
+
|
25
|
+
Tests can access a limited set of private Selenium RC servers.
|
22
26
|
EOF
|
23
27
|
|
24
28
|
s.rubyforge_project = "tddium"
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: tddium-preview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.6.
|
5
|
+
version: 0.6.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Solano Labs
|
@@ -114,9 +114,13 @@ dependencies:
|
|
114
114
|
version_requirements: *id009
|
115
115
|
description: |
|
116
116
|
tddium runs your rspec, cucumber, and test::unit tests in our managed
|
117
|
-
cloud environment.
|
118
|
-
|
119
|
-
|
117
|
+
cloud environment. You can run tests by hand, or enable our hosted CI to watch
|
118
|
+
your git repos automatically.
|
119
|
+
|
120
|
+
Tests run in parallel to save you time, and, if you use Rails, tddium takes care
|
121
|
+
of setting up fresh isolated DB instances for each test instance.
|
122
|
+
|
123
|
+
Tests can access a limited set of private Selenium RC servers.
|
120
124
|
|
121
125
|
email:
|
122
126
|
- info@tddium.com
|