testgen 0.8.8 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/ChangeLog +5 -0
- data/Gemfile +0 -6
- data/features/testgen_with_pageobject.feature +4 -4
- data/lib/testgen/generators/project/Gemfile.tt +1 -1
- data/lib/testgen/generators/project/hooks.rb.tt +3 -3
- data/lib/testgen/version.rb +1 -1
- data/testgen.gemspec +1 -1
- metadata +4 -5
- data/Guardfile +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 054b97fcb6d8a8f6ab5be85e80559db908f39278
|
4
|
+
data.tar.gz: ab8b34c300385807211c0d1495e18f0e9d2b0ef1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c83c34d989aae426e8eb60a3d0fcc07153492a038538f1f3c9bd98209f76293b383d89cbd755178451fffe9f50aa9ab99e2772c6750f6d6a49f52ae5847738a
|
7
|
+
data.tar.gz: 140d04206c43b023b26eb557037fa168254d685efb45275f042933b02ed2d45227226c74c50a595b4abd15d6e858e7ec73baa1fd35402aac99be44e233e0cde5
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.3.1
|
data/ChangeLog
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
=== Version 0.9 / 2016-12-7
|
2
|
+
* Updated Gemfile generation to use PageObject 2.0
|
3
|
+
* Updated hooks generation to use Watir instead of WatirWebdriver
|
4
|
+
* Updated hooks generation to default to chrome browser
|
5
|
+
|
1
6
|
=== Version 0.8.8 / 2016-07-31
|
2
7
|
* Removed redundant line with rake gem from Gemfile
|
3
8
|
* Added support of appium lib (Thanks Kirikami)
|
data/Gemfile
CHANGED
@@ -4,7 +4,7 @@ Feature: Adding support for the --pageobject-driver option
|
|
4
4
|
Scenario: Adding page-object to the Gemfile
|
5
5
|
When I run `testgen project sample --pageobject-driver=watir`
|
6
6
|
Then a file named "sample/Gemfile" should exist
|
7
|
-
And the file "sample/Gemfile" should contain "gem 'page-object'"
|
7
|
+
And the file "sample/Gemfile" should contain "gem 'page-object', '~> 2.0'"
|
8
8
|
|
9
9
|
Scenario: Adding page-object to env.rb
|
10
10
|
When I run `testgen project sample --pageobject-driver=watir`
|
@@ -15,14 +15,14 @@ Feature: Adding support for the --pageobject-driver option
|
|
15
15
|
Scenario: Adding the hook file for Watir
|
16
16
|
When I run `testgen project sample --pageobject-driver=watir`
|
17
17
|
Then a file named "sample/features/support/hooks.rb" should exist
|
18
|
-
And the file "sample/features/support/hooks.rb" should contain "require 'watir
|
19
|
-
And the file "sample/features/support/hooks.rb" should contain "@browser = Watir::Browser.new :
|
18
|
+
And the file "sample/features/support/hooks.rb" should contain "require 'watir'"
|
19
|
+
And the file "sample/features/support/hooks.rb" should contain "@browser = Watir::Browser.new :chrome"
|
20
20
|
|
21
21
|
Scenario: Adding the hook file for Selenium
|
22
22
|
When I run `testgen project sample --pageobject-driver=selenium`
|
23
23
|
Then a file named "sample/features/support/hooks.rb" should exist
|
24
24
|
And the file "sample/features/support/hooks.rb" should contain "require 'selenium-webdriver'"
|
25
|
-
And the file "sample/features/support/hooks.rb" should contain "@browser = Selenium::WebDriver.for :
|
25
|
+
And the file "sample/features/support/hooks.rb" should contain "@browser = Selenium::WebDriver.for :chrome"
|
26
26
|
|
27
27
|
Scenario: Creating the pages directory
|
28
28
|
When I run `testgen project sample --pageobject-driver=selenium`
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% if pageobject_driver.downcase == 'watir' -%>
|
2
|
-
require 'watir
|
2
|
+
require 'watir'
|
3
3
|
<% end %>
|
4
4
|
<% if pageobject_driver.downcase == 'selenium' -%>
|
5
5
|
require 'selenium-webdriver'
|
@@ -7,10 +7,10 @@ require 'selenium-webdriver'
|
|
7
7
|
|
8
8
|
Before do
|
9
9
|
<% if pageobject_driver.downcase == 'watir' -%>
|
10
|
-
@browser = Watir::Browser.new :
|
10
|
+
@browser = Watir::Browser.new :chrome
|
11
11
|
<% end %>
|
12
12
|
<% if pageobject_driver.downcase == 'selenium' -%>
|
13
|
-
@browser = Selenium::WebDriver.for :
|
13
|
+
@browser = Selenium::WebDriver.for :chrome
|
14
14
|
<% end %>
|
15
15
|
end
|
16
16
|
|
data/lib/testgen/version.rb
CHANGED
data/testgen.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
22
|
s.add_dependency 'thor', '>=0.17.0'
|
23
|
-
s.add_dependency 'cucumber', '>=
|
23
|
+
s.add_dependency 'cucumber', '>=2.0.0'
|
24
24
|
s.add_dependency 'rspec', '>=2.13.0'
|
25
25
|
s.add_dependency 'require_all'
|
26
26
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testgen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.9'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeffrey S. Morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07
|
11
|
+
date: 2016-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,7 +93,6 @@ files:
|
|
93
93
|
- ".ruby-version"
|
94
94
|
- ChangeLog
|
95
95
|
- Gemfile
|
96
|
-
- Guardfile
|
97
96
|
- Rakefile
|
98
97
|
- Readme.md
|
99
98
|
- bin/testgen
|
data/Guardfile
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
# A sample Guardfile
|
2
|
-
# More info at https://github.com/guard/guard#readme
|
3
|
-
|
4
|
-
guard 'cucumber', :notification => true, :all_after_pass => false, :cli => '--profile focus' do
|
5
|
-
watch(%r{^features/.+\.feature$})
|
6
|
-
watch(%r{^features/support/.+$}) { 'features' }
|
7
|
-
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
|
8
|
-
watch(%r{^lib/.+\.rb$}) { "features" }
|
9
|
-
watch(%r{^lib/.+\.tt$}) { "features" }
|
10
|
-
watch(%r{^cucumber.yml$}) { "features" }
|
11
|
-
end
|