cwtestgen 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
data/cwtestgen.gemspec
CHANGED
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_dependency 'cucumber', '>=1.2.0'
|
24
24
|
s.add_dependency 'rspec', '>=2.13.0'
|
25
25
|
s.add_dependency 'require_all'
|
26
|
+
s.add_dependency 'page-object'
|
26
27
|
s.add_dependency 'watir-webdriver'
|
27
28
|
s.add_dependency 'watir-webdriver-performance'
|
28
29
|
|
@@ -30,7 +30,15 @@ module CwTestGen
|
|
30
30
|
def create_log_directory
|
31
31
|
empty_directory("#{name}/features/logs")
|
32
32
|
end
|
33
|
+
|
34
|
+
def create_screenshot_directory
|
35
|
+
empty_directory("#{name}/features/screenshots")
|
36
|
+
end
|
33
37
|
|
38
|
+
def copy_hooks
|
39
|
+
template "hooks.rb.tt", "#{name}/features/support/hooks.rb"
|
40
|
+
end
|
41
|
+
|
34
42
|
def copy_env
|
35
43
|
template "env.rb.tt", "#{name}/features/support/env.rb"
|
36
44
|
end
|
@@ -47,6 +55,12 @@ module CwTestGen
|
|
47
55
|
template "sample_steps.rb.tt", "#{name}/features/support/step_definitions/#{name}_steps.rb"
|
48
56
|
end
|
49
57
|
end
|
58
|
+
|
59
|
+
def create_symlink_to_lib
|
60
|
+
unless File.symlink?("#{name}/features/support/lib/")
|
61
|
+
File.symlink("#{name}/features/support/lib", "lib")
|
62
|
+
end
|
63
|
+
end
|
50
64
|
|
51
65
|
private
|
52
66
|
|
data/lib/cwtestgen/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cwtestgen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -77,6 +77,22 @@ dependencies:
|
|
77
77
|
- - ! '>='
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '0'
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: page-object
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ! '>='
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
80
96
|
- !ruby/object:Gem::Dependency
|
81
97
|
name: watir-webdriver
|
82
98
|
requirement: !ruby/object:Gem::Requirement
|
@@ -161,6 +177,7 @@ files:
|
|
161
177
|
- lib/cwtestgen/generators/project/cucumber.yml.tt
|
162
178
|
- lib/cwtestgen/generators/project/env.rb.tt
|
163
179
|
- lib/cwtestgen/generators/project/home_page.rb.tt
|
180
|
+
- lib/cwtestgen/generators/project/hooks.rb.tt
|
164
181
|
- lib/cwtestgen/generators/project/sample_cucumber.feature.tt
|
165
182
|
- lib/cwtestgen/generators/project/sample_steps.rb.tt
|
166
183
|
- lib/cwtestgen/version.rb
|