File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 10
10
# Run only the view album test:
11
11
# ruby run.rb ios view_album
12
12
13
+ def start_driver ( caps )
14
+ driver = Appium ::Driver . new ( caps )
15
+ # Tests expect methods defined on the minispec object
16
+ Appium . promote_appium_methods ::Minitest ::Spec
17
+ driver . start_driver
18
+ end
19
+
13
20
# Sanity check
14
21
a = OpenStruct . new x : 'ok'
15
22
fail 'x issue' unless a . x == 'ok'
40
47
end
41
48
42
49
fail "\n Test #{ one_test } does not exist.\n " unless File . exist? ( one_test )
43
- driver = Appium ::Driver . new ( caps )
44
- # Tests expect methods defined on the minispec object
45
- Appium . promote_appium_methods ::Minitest ::Spec
46
- driver . start_driver
50
+ start_driver ( caps )
47
51
48
52
# require support (common.rb)
49
53
Dir . glob ( File . join dir , test_dir + '/*.rb' ) do |test |
61
65
puts " #{ File . basename ( test , '.*' ) } "
62
66
require test
63
67
end
64
- Appium ::Driver . new ( caps ) . start_driver
68
+
69
+ start_driver ( caps )
65
70
end
66
71
67
72
trace_files . map! do |f |
You can’t perform that action at this time.
0 commit comments