xamarin-test-cloud 0.9.35 → 0.9.36

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: 68d399782b271b6411085a58a29c0f2a7fb17b82
4
- data.tar.gz: 8bc781834b810eaedd29783f349aec04fbb1ffae
3
+ metadata.gz: cfea89f157d1027546d3846376a768b7108c2239
4
+ data.tar.gz: e53cc8b6cf3c5da48d3b1cb2e867a317471f68f7
5
5
  SHA512:
6
- metadata.gz: 33429cba7d3a1c203bdd7710b22592ef3595130de55410eab05eabb0fc7e7b6cb2aeb711741a59343f7e79925284061e292265f93ed2daf08593a1ae8f84057f
7
- data.tar.gz: 6ed5dc5e803d7aa2a640de69550b86a85e48fb5b5526bd210e110e408a4b9e83f81386580aa015bf1385a16aa7f13d700cd223bc762c7cc80a0445e099a4db76
6
+ metadata.gz: ed5012f65c733283cd602d8b5c85f688140bbc623513adbf5536e100c043c498c8580fb28470b959f487620b176d1d9004827b534d27da9cc595d999b834f708
7
+ data.tar.gz: ea652d6e2d32b9df75035819a711d9d9eb50295bbfb79180f471f2eb97b9c30fc2144794e2293ace5ae33dc7696a5887c41f9981d4131ee55237e9f622886187
@@ -345,6 +345,7 @@ module XamarinTestCloud
345
345
  end
346
346
 
347
347
  def validate_device_selection
348
+ return device_selection if device_selection == device_selection.upcase #Allow for special device selections to be passed to the server. Needs to been in all caps.
348
349
  unless /^[0-9a-fA-F]{8,12}$/ =~ device_selection
349
350
  raise ValidationError, 'Device selection is not in the proper format. Please generate a new one on the Xamarin Test Cloud website.'
350
351
  end
@@ -1,3 +1,3 @@
1
1
  module XamarinTestCloud
2
- VERSION = '0.9.35'
2
+ VERSION = '0.9.36'
3
3
  end
data/test/test_parser.rb CHANGED
@@ -5,28 +5,35 @@ require 'xamarin-test-cloud/cli'
5
5
 
6
6
  class TestParser < Test::Unit::TestCase
7
7
  def test_should_raise_if_no_app_or_api_key_is_given
8
- script = XamarinTestCloud::CLI.new([])
8
+ config_options = {
9
+ 'devices' => "aa59649c",
10
+ }
11
+ script = XamarinTestCloud::CLI.new([], config_options)
9
12
  assert_raise Thor::InvocationError do
10
13
  script.invoke(:submit)
11
14
  end
12
15
 
13
- script = XamarinTestCloud::CLI.new(["test/ipa/2012 Olympics_cal.ipa"])
16
+ script = XamarinTestCloud::CLI.new(["test/ipa/2012 Olympics_cal.ipa"], config_options)
14
17
  assert_raise Thor::InvocationError do
15
18
  script.invoke(:submit)
16
19
  end
17
20
 
18
-
19
21
  end
20
22
 
21
23
  def test_should_raise_if_app_is_not_file_ipa_or_apk
22
- script = XamarinTestCloud::CLI.new(["test/ipa/NONE_EXIST_2012 Olympics_cal.ipa","JIFZCTPZJJXJLEKMMYRY","."])
23
- assert_raise RuntimeError do
24
+ config_options = {
25
+ 'devices' => "aa59649c",
26
+ }
27
+
28
+ script = XamarinTestCloud::CLI.new(["test/ipa/NONE_EXIST_2012 Olympics_cal.ipa","JIFZCTPZJJXJLEKMMYRY"], config_options)
29
+
30
+ assert_raise XamarinTestCloud::ValidationError do
24
31
  script.invoke(:submit)
25
32
  end
26
33
 
27
- script = XamarinTestCloud::CLI.new(["test/ipa/features.zip","JIFZCTPZJJXJLEKMMYRY","."])
34
+ script = XamarinTestCloud::CLI.new(["test/ipa/features.zip","JIFZCTPZJJXJLEKMMYRY"], config_options)
28
35
 
29
- assert_raise RuntimeError do
36
+ assert_raise XamarinTestCloud::ValidationError do
30
37
  script.invoke(:submit)
31
38
  end
32
39
  end
@@ -38,10 +45,11 @@ class TestParser < Test::Unit::TestCase
38
45
 
39
46
  config_options = {
40
47
  :host => "http://localhost:8080",
41
- :workspace => "test",
48
+ :workspace => "test/ipa",
42
49
  :features => "test/ipa/features.zip",
43
50
  :config => "test/config/cucumber.yml",
44
51
  :profile => "a",
52
+ 'devices' => "aa59649c",
45
53
  "skip-check" => false,
46
54
  "reset-between-scenarios" => false,
47
55
  "dry-run" => true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xamarin-test-cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.35
4
+ version: 0.9.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-15 00:00:00.000000000 Z
12
+ date: 2014-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -115,6 +115,20 @@ dependencies:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.3.3.1
118
+ - !ruby/object:Gem::Dependency
119
+ name: rake
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: '10.3'
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ~>
130
+ - !ruby/object:Gem::Version
131
+ version: '10.3'
118
132
  description: Xamarin Test Cloud lets you automatically test your app on hundreds of
119
133
  mobile devices
120
134
  email: