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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e6bbdb1712082df133c636c04d9e4712676e6de
4
- data.tar.gz: c66e90823e72568fd6145d5f291f4abbae1d5b7f
3
+ metadata.gz: 054b97fcb6d8a8f6ab5be85e80559db908f39278
4
+ data.tar.gz: ab8b34c300385807211c0d1495e18f0e9d2b0ef1
5
5
  SHA512:
6
- metadata.gz: 3980e40b53462e491d8b0771de8292614419b9b8d963e318f02375581798d5ec95a6c201d00ec3cbcf6ce21e90cd192e70a199e7cf39db7efa08595f4deb55a5
7
- data.tar.gz: c0f5fe1818a07d79e74bd1ad99cf1f5c6a639782ab524ebd64f7fb0d70f76f5fbf426dcf072eeb91a87554b1817eb4d472f1636ff49095471f0014c3c88a9f89
6
+ metadata.gz: 9c83c34d989aae426e8eb60a3d0fcc07153492a038538f1f3c9bd98209f76293b383d89cbd755178451fffe9f50aa9ab99e2772c6750f6d6a49f52ae5847738a
7
+ data.tar.gz: 140d04206c43b023b26eb557037fa168254d685efb45275f042933b02ed2d45227226c74c50a595b4abd15d6e858e7ec73baa1fd35402aac99be44e233e0cde5
@@ -1 +1 @@
1
- ruby-2.0.0-p353
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
@@ -1,12 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  gem 'rake'
4
- gem 'fuubar'
5
- gem 'fuubar-cucumber'
6
- gem 'rb-fsevent', '~> 0.9.1'
7
- gem 'growl'
8
- gem 'guard-rspec'
9
- gem 'guard-cucumber'
10
4
 
11
5
  # Specify your gem's dependencies in testgen.gemspec
12
6
  gemspec
@@ -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-webdriver'"
19
- And the file "sample/features/support/hooks.rb" should contain "@browser = Watir::Browser.new :firefox"
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 :firefox"
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`
@@ -4,7 +4,7 @@ gem 'cucumber'
4
4
  gem 'rspec'
5
5
  gem 'rake'
6
6
  <% unless pageobject_driver.downcase == 'none' -%>
7
- gem 'page-object'
7
+ gem 'page-object', '~> 2.0'
8
8
  <% end -%>
9
9
  <% if with_lib == 'true' or with_gametel == 'true' or with_appium == 'true' -%>
10
10
  gem 'require_all'
@@ -1,5 +1,5 @@
1
1
  <% if pageobject_driver.downcase == 'watir' -%>
2
- require 'watir-webdriver'
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 :firefox
10
+ @browser = Watir::Browser.new :chrome
11
11
  <% end %>
12
12
  <% if pageobject_driver.downcase == 'selenium' -%>
13
- @browser = Selenium::WebDriver.for :firefox
13
+ @browser = Selenium::WebDriver.for :chrome
14
14
  <% end %>
15
15
  end
16
16
 
@@ -1,3 +1,3 @@
1
1
  module TestGen
2
- VERSION = "0.8.8"
2
+ VERSION = "0.9"
3
3
  end
@@ -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', '>=1.2.0'
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.8.8
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-31 00:00:00.000000000 Z
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: 1.2.0
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: 1.2.0
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