watir_testframework 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/bin/runregress +6 -5
- data/lib/setup.rb +5 -17
- data/lib/util_helpers.rb +7 -0
- data/lib/watir_testframework/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50b0a1701344d14438ee451eb97e1b43632d8cfa
|
4
|
+
data.tar.gz: 54540f84eb9d079da48bb3de01254c0e9525da46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4cabb5b4a6e3aaf5643a8345df472560d4529bff3c04fc4715d3ee056a04b34d4d274f1491dcfb8578b484a0f9520047185d21f7dfbb8daa06f4b0ed8502497
|
7
|
+
data.tar.gz: e386d66d35f96c03c3b49cfe2fa06d15a50243f5cadb9e8ceec521b0a8893e14f6ab7960723e5ba5407092769766e181a90b5d5b594c1e9e3523b036588000c1
|
data/bin/runregress
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
require
|
3
|
-
require 'open3'
|
4
|
-
require 'optparse'
|
5
|
-
require 'common'
|
6
|
-
require 'setup'
|
2
|
+
require 'util_helpers'
|
7
3
|
include Common
|
8
4
|
include Setup
|
5
|
+
|
9
6
|
puts "Running: 'WatirTestframework: version:#{WatirTestframework::VERSION}'\n\n"
|
10
7
|
|
11
8
|
opts = Setup::cml_options #Lets grab the CommandLine Options
|
12
9
|
|
13
10
|
unless opts[:projectname].nil?
|
11
|
+
if (File.exists?(opts[:projectname]))
|
12
|
+
puts "#{opts[:projectname]} already exists..."
|
13
|
+
exit(1)
|
14
|
+
end
|
14
15
|
binpath = File.expand_path(File.dirname(__FILE__)) + "\/"
|
15
16
|
Setup::unbundle_and_untar(binpath, opts[:projectname])
|
16
17
|
exit(0)
|
data/lib/setup.rb
CHANGED
@@ -33,17 +33,13 @@ module Setup
|
|
33
33
|
|
34
34
|
opts.banner = "Usage: runregress [options]"
|
35
35
|
|
36
|
-
opts.on("-
|
37
|
-
|
38
|
-
|
39
|
-
opts.on("-s", "--setup", "Setup new projet") do |s|
|
40
|
-
options[:setup] = true
|
41
|
-
scaffold
|
36
|
+
opts.on("-h", "--help", "Display this screen") do |h|
|
37
|
+
puts opts
|
38
|
+
exit
|
42
39
|
end
|
43
40
|
|
44
|
-
opts.on('-
|
45
|
-
options[:
|
46
|
-
puts "using file name: #{file}"
|
41
|
+
opts.on('-n', '--new PROJECTNAME','Create new project')do |projectname|
|
42
|
+
options[:projectname] = projectname
|
47
43
|
end
|
48
44
|
|
49
45
|
opts.on('-r', '--test_list FILENAME', 'File with Tests for this regression') do |file|
|
@@ -55,14 +51,6 @@ module Setup
|
|
55
51
|
options[:testlist] = tests
|
56
52
|
puts "Running Tests: #{options[:testlist]}"
|
57
53
|
end
|
58
|
-
|
59
|
-
opts.on('-n', '--new PROJECTNAME','Create new project')do |projectname|
|
60
|
-
options[:projectname] = projectname
|
61
|
-
end
|
62
|
-
opts.on("-h", "--help", "Display this screen") do |h|
|
63
|
-
puts opts
|
64
|
-
exit
|
65
|
-
end
|
66
54
|
end.parse!
|
67
55
|
options
|
68
56
|
end
|
data/lib/util_helpers.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir_testframework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladmr
|
@@ -79,6 +79,7 @@ files:
|
|
79
79
|
- lib/common.rb
|
80
80
|
- lib/setup.rb
|
81
81
|
- lib/tar.rb
|
82
|
+
- lib/util_helpers.rb
|
82
83
|
- lib/watir_testframework.rb
|
83
84
|
- lib/watir_testframework/version.rb
|
84
85
|
homepage: https://github.com/vcharlem/watir_testframework.git
|