tddium-preview 0.6.0 → 0.6.1

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.5.6)
4
+ tddium-preview (0.6.0)
5
5
  bundler
6
6
  highline
7
7
  json
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, :tests => test_files})
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)
@@ -3,5 +3,5 @@ Copyright (c) 2011 Solano Labs All Rights Reserved
3
3
  =end
4
4
 
5
5
  module TddiumVersion
6
- VERSION = "0.6.0"
6
+ VERSION = "0.6.1"
7
7
  end
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 names of the file names extracted from the test_pattern parameter" do
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
- :tests => [{:test_name => "#{current_dir}/spec/cat_spec.rb"},
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
- :tests => [{:test_name => "#{current_dir}/spec/cat_spec.rb"}]})
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
- :tests => [{:test_name => "#{current_dir}/spec/cat_spec.rb"}]})
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 % 3}'" do
1009
- tddium.should_receive(:say).with(Tddium::Text::Process::STARTING_TEST % 3)
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. Tests run in parallel to save you time, and, if you use
20
- Rails, tddium takes care of setting up fresh isolated DB instances for each test
21
- instance. Tests can also access a limited set of private Selenium RC servers.
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.0
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. Tests run in parallel to save you time, and, if you use
118
- Rails, tddium takes care of setting up fresh isolated DB instances for each test
119
- instance. Tests can also access a limited set of private Selenium RC servers.
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