testgen 0.7 → 0.8
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/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/ChangeLog +3 -0
- data/features/with_gametel_option.feature +4 -7
- data/lib/testgen/generators/project/env.rb.tt +3 -10
- data/lib/testgen/version.rb +1 -1
- metadata +4 -9
- data/.rvmrc +0 -1
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
testgen
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-1.9.3-p392
|
data/ChangeLog
CHANGED
@@ -10,8 +10,6 @@ Feature: Adding the --with-gametel flag
|
|
10
10
|
Scenario: Adding gametel to env.rb
|
11
11
|
When I run `testgen project sample --with-gametel`
|
12
12
|
Then a file named "sample/features/support/env.rb" should exist
|
13
|
-
And the file "sample/features/support/env.rb" should contain "require 'brazenhead'"
|
14
|
-
And the file "sample/features/support/env.rb" should contain "require 'brazenhead/server'"
|
15
13
|
And the file "sample/features/support/env.rb" should contain "require 'gametel'"
|
16
14
|
And the file "sample/features/support/env.rb" should contain "World(Gametel::Navigation)"
|
17
15
|
|
@@ -27,11 +25,10 @@ Feature: Adding the --with-gametel flag
|
|
27
25
|
Scenario: Creating the Driver and hooks
|
28
26
|
When I run `testgen project sample --with-gametel`
|
29
27
|
Then a file named "sample/features/support/env.rb" should exist
|
30
|
-
And the file "sample/features/support/env.rb" should contain "
|
31
|
-
And the file "sample/features/support/env.rb" should contain "
|
32
|
-
And the file "sample/features/support/env.rb" should contain "
|
33
|
-
|
34
|
-
And the file "sample/features/support/env.rb" should contain "server.stop"
|
28
|
+
And the file "sample/features/support/env.rb" should contain "@driver = Gametel.start(ACTIVITY_NAME_GOES_HERE, keystore)"
|
29
|
+
And the file "sample/features/support/env.rb" should contain "Gametel.stop"
|
30
|
+
And the file "sample/features/support/env.rb" should contain "Gametel.apk_path = PATH_TO_APK"
|
31
|
+
|
35
32
|
|
36
33
|
Scenario: Should not create the hooks file
|
37
34
|
When I run `testgen project sample --with-gametel`
|
@@ -8,8 +8,6 @@ require 'page-object'
|
|
8
8
|
<% end -%>
|
9
9
|
|
10
10
|
<% if with_gametel == 'true' -%>
|
11
|
-
require 'brazenhead'
|
12
|
-
require 'brazenhead/server'
|
13
11
|
require 'gametel'
|
14
12
|
<% end -%>
|
15
13
|
|
@@ -34,19 +32,14 @@ keystore = {
|
|
34
32
|
:keystore_password => 'android'
|
35
33
|
}
|
36
34
|
|
37
|
-
|
38
|
-
|
39
|
-
class Driver
|
40
|
-
include Brazenhead
|
41
|
-
end
|
35
|
+
Gametel.apk_path = PATH_TO_APK
|
42
36
|
|
43
37
|
Before do
|
44
|
-
@driver =
|
45
|
-
server.start(ACTIVITY_NAME_GOES_HERE)
|
38
|
+
@driver = Gametel.start(ACTIVITY_NAME_GOES_HERE, keystore)
|
46
39
|
end
|
47
40
|
|
48
41
|
After do
|
49
|
-
|
42
|
+
Gametel.stop
|
50
43
|
end
|
51
44
|
<% end -%>
|
52
45
|
|
data/lib/testgen/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testgen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.8'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -100,7 +100,8 @@ extensions: []
|
|
100
100
|
extra_rdoc_files: []
|
101
101
|
files:
|
102
102
|
- .gitignore
|
103
|
-
- .
|
103
|
+
- .ruby-gemset
|
104
|
+
- .ruby-version
|
104
105
|
- ChangeLog
|
105
106
|
- Gemfile
|
106
107
|
- Guardfile
|
@@ -137,18 +138,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
137
138
|
- - ! '>='
|
138
139
|
- !ruby/object:Gem::Version
|
139
140
|
version: '0'
|
140
|
-
segments:
|
141
|
-
- 0
|
142
|
-
hash: 3275149058949778884
|
143
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
142
|
none: false
|
145
143
|
requirements:
|
146
144
|
- - ! '>='
|
147
145
|
- !ruby/object:Gem::Version
|
148
146
|
version: '0'
|
149
|
-
segments:
|
150
|
-
- 0
|
151
|
-
hash: 3275149058949778884
|
152
147
|
requirements: []
|
153
148
|
rubyforge_project: testgen
|
154
149
|
rubygems_version: 1.8.25
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm 1.9.3-p392@testgen --create
|