soda 1.4.0 → 1.4.1
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/bin/SodaSuite +9 -2
- data/lib/Soda.rb +9 -0
- data/lib/sodainfo.rb +1 -1
- metadata +4 -4
data/bin/SodaSuite
CHANGED
@@ -251,6 +251,9 @@ Optional Flags:
|
|
251
251
|
|
252
252
|
--nonzippytext: This turns on zippy text entry for Watir.
|
253
253
|
|
254
|
+
--testdelay: This forces a 10 second delay in between tests that run in a
|
255
|
+
suite.
|
256
|
+
|
254
257
|
--version: Print the Soda Version string.
|
255
258
|
|
256
259
|
HLP
|
@@ -457,7 +460,8 @@ def Main
|
|
457
460
|
'gvars' => {},
|
458
461
|
'errorskip' => [],
|
459
462
|
'restart_count' => 0,
|
460
|
-
'restart_test' => ""
|
463
|
+
'restart_test' => "",
|
464
|
+
'testdelay' => false
|
461
465
|
}
|
462
466
|
|
463
467
|
# turn off ruby i/o buffering #
|
@@ -505,7 +509,8 @@ def Main
|
|
505
509
|
[ '--reruntest', '-3', GetoptLong::OPTIONAL_ARGUMENT ],
|
506
510
|
[ '--skipcsserrors', '-4', GetoptLong::OPTIONAL_ARGUMENT],
|
507
511
|
[ '--nonzippytext', '-6', GetoptLong::OPTIONAL_ARGUMENT],
|
508
|
-
[ '--version', '-5', GetoptLong::OPTIONAL_ARGUMENT]
|
512
|
+
[ '--version', '-5', GetoptLong::OPTIONAL_ARGUMENT],
|
513
|
+
[ '--testdelay', '-8', GetoptLong::OPTIONAL_ARGUMENT]
|
509
514
|
)
|
510
515
|
|
511
516
|
opts.quiet = true
|
@@ -551,6 +556,8 @@ def Main
|
|
551
556
|
params['errorskip'].push("css")
|
552
557
|
when "--nonzippytext"
|
553
558
|
params['nonzippytext'] = true
|
559
|
+
when "--testdelay"
|
560
|
+
params['testdelay'] = true
|
554
561
|
when "--version"
|
555
562
|
SodaUtils.PrintSoda("(*)SODA Version: #{SODA_GEM_VERSION}\n")
|
556
563
|
return 0
|
data/lib/Soda.rb
CHANGED
@@ -111,6 +111,7 @@ class Soda
|
|
111
111
|
@non_lib_test_count = 0
|
112
112
|
@last_test = ""
|
113
113
|
@SugarWait = false
|
114
|
+
@testDelay = false
|
114
115
|
@restart_test_running = false
|
115
116
|
@FAILEDTESTS = []
|
116
117
|
@GotWatchDog = false
|
@@ -125,6 +126,7 @@ class Soda
|
|
125
126
|
]
|
126
127
|
err = 0
|
127
128
|
|
129
|
+
@testDelay = params['testdelay'] if (params.key?('testdelay'))
|
128
130
|
@sugarFlavor = params['flavor'] if (params.key?('flavor'))
|
129
131
|
@resultsDir = params['resultsdir'] if (params.key?('resultsdir'))
|
130
132
|
@globalVars = params['gvars'] if (params.key?('gvars'))
|
@@ -3035,6 +3037,13 @@ JSCode
|
|
3035
3037
|
if (test_dir !~ /lib/i)
|
3036
3038
|
test_since_restart += 1
|
3037
3039
|
end
|
3040
|
+
|
3041
|
+
if (@testDelay)
|
3042
|
+
SodaUtils.PrintSoda("Starting Test Delay...\n")
|
3043
|
+
sleep(10)
|
3044
|
+
SodaUtils.PrintSoda("Finished Test Delay.\n")
|
3045
|
+
end
|
3046
|
+
|
3038
3047
|
end
|
3039
3048
|
|
3040
3049
|
return result
|
data/lib/sodainfo.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 1.4.
|
9
|
+
- 1
|
10
|
+
version: 1.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Trampus Richmond
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-05-06 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: firewatir
|