appium_lib_core 5.0.3 → 5.1.2
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/CHANGELOG.md +18 -0
- data/README.md +1 -1
- data/appium_lib_core.gemspec +3 -3
- data/lib/appium_lib_core/common/base/bridge.rb +9 -11
- data/lib/appium_lib_core/common/command.rb +0 -2
- data/lib/appium_lib_core/driver.rb +13 -5
- data/lib/appium_lib_core/version.rb +2 -2
- metadata +11 -23
- data/.github/ISSUE_TEMPLATE/issue-report.md +0 -29
- data/.github/contributing.md +0 -26
- data/.github/dependabot.yml +0 -8
- data/.github/issue_template.md +0 -20
- data/.github/workflows/codeql-analysis.yml +0 -70
- data/.github/workflows/unittest.yml +0 -67
- data/.gitignore +0 -18
- data/.rubocop.yml +0 -152
- data/azure-pipelines.yml +0 -15
- data/ci-jobs/functional/android_setup.yml +0 -3
- data/ci-jobs/functional/ios_setup.yml +0 -7
- data/ci-jobs/functional/publish_test_result.yml +0 -18
- data/ci-jobs/functional/run_appium.yml +0 -25
- data/ci-jobs/functional/start-emulator.sh +0 -26
- data/ci-jobs/functional_test.yml +0 -298
- data/docs/mobile_command.md +0 -34
- data/release_notes.md +0 -956
- data/script/commands.rb +0 -166
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02b4dc4e7053fd4d10214334441ab3f1910018ae4ad9fc407dedc356f0bdd7ba
|
4
|
+
data.tar.gz: 35ed4881f7ac3c221934e5d082ea73ce5ef632c99b30c4363ce367979e5c4dce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3888ab02b863794e4290ed2741419ff33131deb7e065054458a43bc05e963e09f2191609cb647640beee2cd47e3df1994ec95c0e700ae06155245244b95aca06
|
7
|
+
data.tar.gz: cbfd890bad70c6fc5095db493e4c25f91bcbb6fe9371a3b709d87052b231eb1c680f05cef8e4271e7fbf572a7ceb41cfd13bd01b12d6cd7ab077fba88bf76245
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,24 @@ Read `release_notes.md` for commit level details.
|
|
10
10
|
|
11
11
|
### Deprecations
|
12
12
|
|
13
|
+
## [5.1.2] - 2022-06-02
|
14
|
+
|
15
|
+
### Enhancements
|
16
|
+
|
17
|
+
- Limit selenium webdriver version less than `4.2`
|
18
|
+
|
19
|
+
## [5.1.1] - 2022-04-18
|
20
|
+
|
21
|
+
### Enhancements
|
22
|
+
|
23
|
+
- Remove unneccessry files from gem package to reduce the size.
|
24
|
+
|
25
|
+
## [5.1.0] - 2021-12-25
|
26
|
+
|
27
|
+
### Enhancements
|
28
|
+
- Make default pointerType `touch` for the pointer in W3C actions instead of `mouse` for Appium
|
29
|
+
- This change should not affect W3C actions
|
30
|
+
|
13
31
|
## [5.0.3] - 2021-12-13
|
14
32
|
|
15
33
|
### Enhancements
|
data/README.md
CHANGED
@@ -43,7 +43,7 @@ $ appium --relaxed-security # To run all tests in local
|
|
43
43
|
```bash
|
44
44
|
$ bundle install
|
45
45
|
$ rake test:func:android # Andorid, uiautomator2
|
46
|
-
$
|
46
|
+
$ APPIUM_DRIVER=espresso rake test:func:android # Andorid, uiautomator2
|
47
47
|
$ rake test:func:ios # iOS
|
48
48
|
```
|
49
49
|
|
data/appium_lib_core.gemspec
CHANGED
@@ -16,13 +16,13 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.homepage = 'https://github.com/appium/ruby_lib_core/'
|
17
17
|
spec.license = 'Apache-2.0'
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
|
-
f.match(%r{^(doc|test|spec|features)
|
19
|
+
f.match(%r{(^(doc|docs|test|spec|features|ci-jobs|.github|script)/|release_notes.md|.gitignore|azure-pipelines.yml|.rubocop.yml)})
|
20
20
|
end
|
21
21
|
spec.bindir = 'exe'
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
|
-
spec.add_runtime_dependency 'selenium-webdriver', '~> 4.0'
|
25
|
+
spec.add_runtime_dependency 'selenium-webdriver', '~> 4.0', '< 4.2'
|
26
26
|
spec.add_runtime_dependency 'faye-websocket', '~> 0.11.0'
|
27
27
|
|
28
28
|
spec.add_development_dependency 'rake', '~> 13.0'
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
31
31
|
spec.add_development_dependency 'minitest-reporters', '~> 1.1'
|
32
32
|
spec.add_development_dependency 'webmock', '~> 3.14.0'
|
33
|
-
spec.add_development_dependency 'rubocop', '1.
|
33
|
+
spec.add_development_dependency 'rubocop', '1.30.0'
|
34
34
|
spec.add_development_dependency 'appium_thor', '~> 1.0'
|
35
35
|
spec.add_development_dependency 'parallel_tests'
|
36
36
|
spec.add_development_dependency 'simplecov'
|
@@ -159,8 +159,7 @@ module Appium
|
|
159
159
|
# - https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/PointerActions.html
|
160
160
|
# - https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/KeyActions.html
|
161
161
|
#
|
162
|
-
#
|
163
|
-
# the server side. So we don't consider the case.
|
162
|
+
# The pointer type is 'touch' by default in the Appium Ruby client. (The selenium one is 'mouse')
|
164
163
|
#
|
165
164
|
# @example
|
166
165
|
#
|
@@ -168,9 +167,14 @@ module Appium
|
|
168
167
|
# @driver.action.click(element).perform # The 'click' is a part of 'PointerActions'
|
169
168
|
#
|
170
169
|
def action(async = false)
|
171
|
-
|
172
|
-
|
173
|
-
|
170
|
+
action_builder = ::Selenium::WebDriver::ActionBuilder.new(
|
171
|
+
self,
|
172
|
+
::Selenium::WebDriver::Interactions.pointer(:touch, name: 'touch'),
|
173
|
+
::Selenium::WebDriver::Interactions.key('keyboard'),
|
174
|
+
async
|
175
|
+
)
|
176
|
+
# Used for default duration of each touch actions.
|
177
|
+
# Override from 250 milliseconds to 50 milliseconds in PointerActions included by ::Selenium::WebDriver::ActionBuilder
|
174
178
|
action_builder.default_move_duration = 0.05
|
175
179
|
action_builder
|
176
180
|
end
|
@@ -185,12 +189,6 @@ module Appium
|
|
185
189
|
::Selenium::WebDriver::Remote::Capabilities.json_create execute(:get_capabilities)
|
186
190
|
end
|
187
191
|
|
188
|
-
# Port from MJSONWP
|
189
|
-
def send_keys_to_active_element(key)
|
190
|
-
text = ::Selenium::WebDriver::Keys.encode(key).join
|
191
|
-
execute :send_keys_to_active_element, {}, { value: text.chars }
|
192
|
-
end
|
193
|
-
|
194
192
|
# For Appium
|
195
193
|
# override
|
196
194
|
def page_source
|
@@ -171,8 +171,6 @@ module Appium
|
|
171
171
|
ime_deactivate: [:post, 'session/:session_id/ime/deactivate'],
|
172
172
|
ime_activate_engine: [:post, 'session/:session_id/ime/activate'],
|
173
173
|
|
174
|
-
send_keys_to_active_element: [:post, 'session/:session_id/keys'],
|
175
|
-
|
176
174
|
### Logs
|
177
175
|
get_available_log_types: [:get, 'session/:session_id/log/types'],
|
178
176
|
get_log: [:post, 'session/:session_id/log'],
|
@@ -76,6 +76,13 @@ module Appium
|
|
76
76
|
path: 'directConnectPath'
|
77
77
|
}.freeze
|
78
78
|
|
79
|
+
W3C_KEYS = {
|
80
|
+
protocol: 'appium:directConnectProtocol',
|
81
|
+
host: 'appium:directConnectHost',
|
82
|
+
port: 'appium:directConnectPort',
|
83
|
+
path: 'appium:directConnectPath'
|
84
|
+
}.freeze
|
85
|
+
|
79
86
|
# @return [string] Returns a protocol such as http/https
|
80
87
|
attr_reader :protocol
|
81
88
|
|
@@ -89,10 +96,10 @@ module Appium
|
|
89
96
|
attr_reader :path
|
90
97
|
|
91
98
|
def initialize(capabilities)
|
92
|
-
@protocol = capabilities[KEYS[:protocol]]
|
93
|
-
@host = capabilities[KEYS[:host]]
|
94
|
-
@port = capabilities[KEYS[:port]]
|
95
|
-
@path = capabilities[KEYS[:path]]
|
99
|
+
@protocol = capabilities[W3C_KEYS[:protocol]] || capabilities[KEYS[:protocol]]
|
100
|
+
@host = capabilities[W3C_KEYS[:host]] || capabilities[KEYS[:host]]
|
101
|
+
@port = capabilities[W3C_KEYS[:port]] || capabilities[KEYS[:port]]
|
102
|
+
@path = capabilities[W3C_KEYS[:path]] || capabilities[KEYS[:path]]
|
96
103
|
end
|
97
104
|
end
|
98
105
|
|
@@ -175,7 +182,8 @@ module Appium
|
|
175
182
|
# - <code>directConnectPort</code>
|
176
183
|
# - <code>directConnectPath</code>
|
177
184
|
#
|
178
|
-
#
|
185
|
+
# ignore them if this parameter is <code>false</code>. Defaults to true.
|
186
|
+
# These keys can have <code>appium:</code> prefix.
|
179
187
|
#
|
180
188
|
# @return [Bool]
|
181
189
|
attr_reader :direct_connect
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
module Appium
|
16
16
|
module Core
|
17
|
-
VERSION = '5.
|
18
|
-
DATE = '
|
17
|
+
VERSION = '5.1.2' unless defined? ::Appium::Core::VERSION
|
18
|
+
DATE = '2022-06-02' unless defined? ::Appium::Core::DATE
|
19
19
|
end
|
20
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_lib_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuaki MATSUO
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '4.0'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '4.2'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,6 +27,9 @@ dependencies:
|
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '4.0'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '4.2'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: faye-websocket
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +120,14 @@ dependencies:
|
|
114
120
|
requirements:
|
115
121
|
- - '='
|
116
122
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
123
|
+
version: 1.30.0
|
118
124
|
type: :development
|
119
125
|
prerelease: false
|
120
126
|
version_requirements: !ruby/object:Gem::Requirement
|
121
127
|
requirements:
|
122
128
|
- - '='
|
123
129
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
130
|
+
version: 1.30.0
|
125
131
|
- !ruby/object:Gem::Dependency
|
126
132
|
name: appium_thor
|
127
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,14 +177,6 @@ executables: []
|
|
171
177
|
extensions: []
|
172
178
|
extra_rdoc_files: []
|
173
179
|
files:
|
174
|
-
- ".github/ISSUE_TEMPLATE/issue-report.md"
|
175
|
-
- ".github/contributing.md"
|
176
|
-
- ".github/dependabot.yml"
|
177
|
-
- ".github/issue_template.md"
|
178
|
-
- ".github/workflows/codeql-analysis.yml"
|
179
|
-
- ".github/workflows/unittest.yml"
|
180
|
-
- ".gitignore"
|
181
|
-
- ".rubocop.yml"
|
182
180
|
- CHANGELOG.md
|
183
181
|
- Gemfile
|
184
182
|
- LICENSE.txt
|
@@ -186,16 +184,8 @@ files:
|
|
186
184
|
- Rakefile
|
187
185
|
- Thorfile
|
188
186
|
- appium_lib_core.gemspec
|
189
|
-
- azure-pipelines.yml
|
190
187
|
- bin/console
|
191
188
|
- bin/setup
|
192
|
-
- ci-jobs/functional/android_setup.yml
|
193
|
-
- ci-jobs/functional/ios_setup.yml
|
194
|
-
- ci-jobs/functional/publish_test_result.yml
|
195
|
-
- ci-jobs/functional/run_appium.yml
|
196
|
-
- ci-jobs/functional/start-emulator.sh
|
197
|
-
- ci-jobs/functional_test.yml
|
198
|
-
- docs/mobile_command.md
|
199
189
|
- lib/appium_lib_core.rb
|
200
190
|
- lib/appium_lib_core/android.rb
|
201
191
|
- lib/appium_lib_core/android/device.rb
|
@@ -278,8 +268,6 @@ files:
|
|
278
268
|
- lib/appium_lib_core/windows/bridge.rb
|
279
269
|
- lib/appium_lib_core/windows/device.rb
|
280
270
|
- lib/appium_lib_core/windows/device/screen.rb
|
281
|
-
- release_notes.md
|
282
|
-
- script/commands.rb
|
283
271
|
homepage: https://github.com/appium/ruby_lib_core/
|
284
272
|
licenses:
|
285
273
|
- Apache-2.0
|
@@ -299,7 +287,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
299
287
|
- !ruby/object:Gem::Version
|
300
288
|
version: '0'
|
301
289
|
requirements: []
|
302
|
-
rubygems_version: 3.
|
290
|
+
rubygems_version: 3.3.3
|
303
291
|
signing_key:
|
304
292
|
specification_version: 4
|
305
293
|
summary: Minimal Ruby library for Appium.
|
@@ -1,29 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: issue report
|
3
|
-
about: Create a report to help us improve
|
4
|
-
title: ''
|
5
|
-
labels: ''
|
6
|
-
assignees: ''
|
7
|
-
|
8
|
-
---
|
9
|
-
|
10
|
-
## This is a
|
11
|
-
* [ ] Bug report
|
12
|
-
* [ ] Question
|
13
|
-
* [ ] Feature Request
|
14
|
-
|
15
|
-
## Summary
|
16
|
-
|
17
|
-
## Environment
|
18
|
-
* `ruby_lib_core` version:
|
19
|
-
* Mobile platform/version/device under test:
|
20
|
-
|
21
|
-
## Actual behaviour and steps to reproduce
|
22
|
-
|
23
|
-
## Expected behaviour
|
24
|
-
|
25
|
-
## Link to Appium/Ruby logs
|
26
|
-
|
27
|
-
Create a [GIST](https://gist.github.com) which is a paste of your _full_ Appium logs, and link them here.
|
28
|
-
|
29
|
-
## Any additional comments
|
data/.github/contributing.md
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# Contributing
|
2
|
-
|
3
|
-
For features or bug fixes, please submit a pull request. Ideally there would be a test as well. The remainder of this doc details how to run the tests.
|
4
|
-
|
5
|
-
## Tests
|
6
|
-
### Unit Tests
|
7
|
-
- `rake test:unit` run on Travis automatically
|
8
|
-
|
9
|
-
### Functional Tests
|
10
|
-
- iOS
|
11
|
-
- `rake test:func:ios`
|
12
|
-
- Android
|
13
|
-
- `rake test:func:android`
|
14
|
-
|
15
|
-
## Merge
|
16
|
-
- Squash and merge when we merge PRs to the master
|
17
|
-
|
18
|
-
## Publishing on rubygems
|
19
|
-
|
20
|
-
0. Ensure you have `~/.gem/credentials` If not run [the following command](http://guides.rubygems.org/make-your-own-gem/) (replace username with your rubygems user)
|
21
|
-
> $ curl -u username https://rubygems.org/api/v1/api_key.yaml >
|
22
|
-
~/.gem/credentials; chmod 0600 ~/.gem/credentials
|
23
|
-
|
24
|
-
1. Bump the version number `thor bump`
|
25
|
-
2. Generate release note, build and publish gem with `thor release`
|
26
|
-
3. Update `changelog.md`
|
data/.github/dependabot.yml
DELETED
data/.github/issue_template.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
## This is a
|
2
|
-
* [ ] Bug report
|
3
|
-
* [ ] Question
|
4
|
-
* [ ] Feature Request
|
5
|
-
|
6
|
-
## Summary
|
7
|
-
|
8
|
-
## Environment
|
9
|
-
* `ruby_lib_core` version:
|
10
|
-
* Mobile platform/version/device under test:
|
11
|
-
|
12
|
-
## Actual behaviour and steps to reproduce
|
13
|
-
|
14
|
-
## Expected behaviour
|
15
|
-
|
16
|
-
## Link to Appium/Ruby logs
|
17
|
-
|
18
|
-
Create a [GIST](https://gist.github.com) which is a paste of your _full_ Appium logs, and link them here.
|
19
|
-
|
20
|
-
## Any additional comments
|
@@ -1,70 +0,0 @@
|
|
1
|
-
# For most projects, this workflow file will not need changing; you simply need
|
2
|
-
# to commit it to your repository.
|
3
|
-
#
|
4
|
-
# You may wish to alter this file to override the set of languages analyzed,
|
5
|
-
# or to provide custom queries or build logic.
|
6
|
-
#
|
7
|
-
# ******** NOTE ********
|
8
|
-
# We have attempted to detect the languages in your repository. Please check
|
9
|
-
# the `language` matrix defined below to confirm you have the correct set of
|
10
|
-
# supported CodeQL languages.
|
11
|
-
#
|
12
|
-
name: "CodeQL"
|
13
|
-
|
14
|
-
on:
|
15
|
-
push:
|
16
|
-
branches: [ master ]
|
17
|
-
pull_request:
|
18
|
-
# The branches below must be a subset of the branches above
|
19
|
-
branches: [ master ]
|
20
|
-
schedule:
|
21
|
-
- cron: '39 12 * * 0'
|
22
|
-
|
23
|
-
jobs:
|
24
|
-
analyze:
|
25
|
-
name: Analyze
|
26
|
-
runs-on: ubuntu-latest
|
27
|
-
permissions:
|
28
|
-
actions: read
|
29
|
-
contents: read
|
30
|
-
security-events: write
|
31
|
-
|
32
|
-
strategy:
|
33
|
-
fail-fast: false
|
34
|
-
matrix:
|
35
|
-
language: [ 'ruby' ]
|
36
|
-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
37
|
-
# Learn more about CodeQL language support at https://git.io/codeql-language-support
|
38
|
-
|
39
|
-
steps:
|
40
|
-
- name: Checkout repository
|
41
|
-
uses: actions/checkout@v2
|
42
|
-
|
43
|
-
# Initializes the CodeQL tools for scanning.
|
44
|
-
- name: Initialize CodeQL
|
45
|
-
uses: github/codeql-action/init@v1
|
46
|
-
with:
|
47
|
-
languages: ${{ matrix.language }}
|
48
|
-
# If you wish to specify custom queries, you can do so here or in a config file.
|
49
|
-
# By default, queries listed here will override any specified in a config file.
|
50
|
-
# Prefix the list here with "+" to use these queries and those in the config file.
|
51
|
-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
52
|
-
|
53
|
-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
54
|
-
# If this step fails, then you should remove it and run the build manually (see below)
|
55
|
-
- name: Autobuild
|
56
|
-
uses: github/codeql-action/autobuild@v1
|
57
|
-
|
58
|
-
# ℹ️ Command-line programs to run using the OS shell.
|
59
|
-
# 📚 https://git.io/JvXDl
|
60
|
-
|
61
|
-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
62
|
-
# and modify them (or add more) to build your code if your project
|
63
|
-
# uses a compiled language
|
64
|
-
|
65
|
-
#- run: |
|
66
|
-
# make bootstrap
|
67
|
-
# make release
|
68
|
-
|
69
|
-
- name: Perform CodeQL Analysis
|
70
|
-
uses: github/codeql-action/analyze@v1
|
@@ -1,67 +0,0 @@
|
|
1
|
-
name: Runs lint and unit tests
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches: [ master ]
|
6
|
-
pull_request:
|
7
|
-
branches: [ master ]
|
8
|
-
|
9
|
-
jobs:
|
10
|
-
test:
|
11
|
-
strategy:
|
12
|
-
fail-fast: false
|
13
|
-
matrix:
|
14
|
-
ruby: [2.6, 2.7, 3.0]
|
15
|
-
|
16
|
-
runs-on: ubuntu-latest
|
17
|
-
|
18
|
-
env:
|
19
|
-
UNIT_TEST: true
|
20
|
-
|
21
|
-
steps:
|
22
|
-
- uses: actions/checkout@v2
|
23
|
-
- name: Set up Ruby
|
24
|
-
uses: ruby/setup-ruby@v1
|
25
|
-
with:
|
26
|
-
ruby-version: ${{ matrix.ruby }}
|
27
|
-
- name: Install dependencies
|
28
|
-
run: bundle install
|
29
|
-
- name: Run tests
|
30
|
-
run: |
|
31
|
-
bundle exec rake rubocop
|
32
|
-
bundle exec rake test:unit
|
33
|
-
AUTOMATION_NAME_DROID=espresso bundle exec rake test:unit:android
|
34
|
-
AUTOMATION_NAME_DROID=appium AUTOMATION_NAME_IOS=appium bundle exec rake test:unit
|
35
|
-
|
36
|
-
test-win:
|
37
|
-
strategy:
|
38
|
-
fail-fast: false
|
39
|
-
matrix:
|
40
|
-
ruby: [2.6, 2.7, 3.0]
|
41
|
-
|
42
|
-
runs-on: windows-latest
|
43
|
-
|
44
|
-
env:
|
45
|
-
UNIT_TEST: true
|
46
|
-
|
47
|
-
steps:
|
48
|
-
- uses: actions/checkout@v2
|
49
|
-
- name: Set up Ruby
|
50
|
-
uses: ruby/setup-ruby@v1
|
51
|
-
with:
|
52
|
-
ruby-version: ${{ matrix.ruby }}
|
53
|
-
- name: Install dependencies
|
54
|
-
run: |
|
55
|
-
gem install ffi
|
56
|
-
bundle install
|
57
|
-
gem uninstall --force eventmachine && gem install eventmachine --platform ruby
|
58
|
-
- name: Run tests
|
59
|
-
run: |
|
60
|
-
rake test:unit
|
61
|
-
|
62
|
-
setx AUTOMATION_NAME_DROID espresso
|
63
|
-
rake test:unit:android
|
64
|
-
|
65
|
-
setx AUTOMATION_NAME_DROID appium
|
66
|
-
setx AUTOMATION_NAME_IOS appium
|
67
|
-
rake test:unit
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
@@ -1,152 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
TargetRubyVersion: 2.6
|
3
|
-
Layout/LineLength:
|
4
|
-
Max: 128
|
5
|
-
Layout/RescueEnsureAlignment:
|
6
|
-
Enabled: false
|
7
|
-
Layout/EmptyLinesAroundAttributeAccessor:
|
8
|
-
Enabled: false
|
9
|
-
Layout/EmptyLineBetweenDefs:
|
10
|
-
Enabled: false
|
11
|
-
Layout/HashAlignment:
|
12
|
-
Enabled: false
|
13
|
-
Metrics/MethodLength:
|
14
|
-
Enabled: false
|
15
|
-
Metrics/ModuleLength:
|
16
|
-
Enabled: false
|
17
|
-
Metrics/ClassLength:
|
18
|
-
Enabled: false
|
19
|
-
Metrics/AbcSize:
|
20
|
-
Enabled: false
|
21
|
-
Metrics/CyclomaticComplexity:
|
22
|
-
Max: 14
|
23
|
-
Metrics/PerceivedComplexity:
|
24
|
-
Max: 14
|
25
|
-
Metrics/ParameterLists:
|
26
|
-
Enabled: false
|
27
|
-
Lint/NestedMethodDefinition:
|
28
|
-
Enabled: false
|
29
|
-
Style/ZeroLengthPredicate:
|
30
|
-
Enabled: false
|
31
|
-
Style/Documentation:
|
32
|
-
Enabled: false
|
33
|
-
Style/CommentedKeyword:
|
34
|
-
Enabled: false
|
35
|
-
Style/PercentLiteralDelimiters:
|
36
|
-
Enabled: false
|
37
|
-
Style/SymbolArray:
|
38
|
-
Enabled: false
|
39
|
-
Style/UnpackFirst:
|
40
|
-
Enabled: false
|
41
|
-
Naming/AccessorMethodName:
|
42
|
-
Enabled: false
|
43
|
-
Naming/MemoizedInstanceVariableName:
|
44
|
-
Enabled: true
|
45
|
-
Exclude:
|
46
|
-
- test/**/*
|
47
|
-
Naming/RescuedExceptionsVariableName:
|
48
|
-
Enabled: false
|
49
|
-
Style/CaseLikeIf:
|
50
|
-
Enabled: false
|
51
|
-
Style/RedundantRegexpEscape:
|
52
|
-
Enabled: false
|
53
|
-
Style/OptionalBooleanParameter:
|
54
|
-
Enabled: false
|
55
|
-
Style/ExplicitBlockArgument:
|
56
|
-
Enabled: false
|
57
|
-
Style/KeywordParametersOrder:
|
58
|
-
Enabled: false
|
59
|
-
Gemspec/DateAssignment:
|
60
|
-
Enabled: true
|
61
|
-
Gemspec/RequireMFA:
|
62
|
-
Enabled: true
|
63
|
-
Layout/LineEndStringConcatenationIndentation:
|
64
|
-
Enabled: true
|
65
|
-
Layout/SpaceBeforeBrackets:
|
66
|
-
Enabled: true
|
67
|
-
Lint/AmbiguousAssignment:
|
68
|
-
Enabled: true
|
69
|
-
Lint/AmbiguousOperatorPrecedence:
|
70
|
-
Enabled: false
|
71
|
-
Lint/AmbiguousRange:
|
72
|
-
Enabled: true
|
73
|
-
Lint/DeprecatedConstants:
|
74
|
-
Enabled: true
|
75
|
-
Lint/DuplicateBranch:
|
76
|
-
Enabled: true
|
77
|
-
Lint/DuplicateRegexpCharacterClassElement:
|
78
|
-
Enabled: true
|
79
|
-
Lint/EmptyBlock:
|
80
|
-
Enabled: true
|
81
|
-
Lint/EmptyClass:
|
82
|
-
Enabled: true
|
83
|
-
Lint/EmptyInPattern:
|
84
|
-
Enabled: true
|
85
|
-
Lint/IncompatibleIoSelectWithFiberScheduler:
|
86
|
-
Enabled: true
|
87
|
-
Lint/LambdaWithoutLiteralBlock:
|
88
|
-
Enabled: true
|
89
|
-
Lint/NoReturnInBeginEndBlocks:
|
90
|
-
Enabled: true
|
91
|
-
Lint/NumberedParameterAssignment:
|
92
|
-
Enabled: true
|
93
|
-
Lint/OrAssignmentToConstant:
|
94
|
-
Enabled: true
|
95
|
-
Lint/RedundantDirGlobSort:
|
96
|
-
Enabled: true
|
97
|
-
Lint/RequireRelativeSelfPath:
|
98
|
-
Enabled: true
|
99
|
-
Lint/SymbolConversion:
|
100
|
-
Enabled: true
|
101
|
-
Lint/ToEnumArguments:
|
102
|
-
Enabled: true
|
103
|
-
Lint/TripleQuotes:
|
104
|
-
Enabled: true
|
105
|
-
Lint/UnexpectedBlockArity:
|
106
|
-
Enabled: true
|
107
|
-
Lint/UnmodifiedReduceAccumulator:
|
108
|
-
Enabled: true
|
109
|
-
Lint/UselessRuby2Keywords:
|
110
|
-
Enabled: true
|
111
|
-
Security/IoMethods:
|
112
|
-
Enabled: true
|
113
|
-
Style/ArgumentsForwarding:
|
114
|
-
Enabled: true
|
115
|
-
Style/CollectionCompact:
|
116
|
-
Enabled: true
|
117
|
-
Style/DocumentDynamicEvalDefinition:
|
118
|
-
Enabled: true
|
119
|
-
Style/EndlessMethod:
|
120
|
-
Enabled: true
|
121
|
-
Style/HashConversion:
|
122
|
-
Enabled: true
|
123
|
-
Style/HashExcept:
|
124
|
-
Enabled: true
|
125
|
-
Style/IfWithBooleanLiteralBranches:
|
126
|
-
Enabled: true
|
127
|
-
Style/InPatternThen:
|
128
|
-
Enabled: true
|
129
|
-
Style/MultilineInPatternThen:
|
130
|
-
Enabled: true
|
131
|
-
Style/NegatedIfElseCondition:
|
132
|
-
Enabled: true
|
133
|
-
Style/NilLambda:
|
134
|
-
Enabled: true
|
135
|
-
Style/NumberedParameters:
|
136
|
-
Enabled: true
|
137
|
-
Style/NumberedParametersLimit:
|
138
|
-
Enabled: true
|
139
|
-
Style/QuotedSymbols:
|
140
|
-
Enabled: true
|
141
|
-
Style/RedundantArgument:
|
142
|
-
Enabled: true
|
143
|
-
Style/RedundantSelfAssignmentBranch:
|
144
|
-
Enabled: true
|
145
|
-
Style/SelectByRegexp:
|
146
|
-
Enabled: true
|
147
|
-
Style/StringChars:
|
148
|
-
Enabled: true
|
149
|
-
Style/SwapValues:
|
150
|
-
Enabled: true
|
151
|
-
Style/OpenStructUse:
|
152
|
-
Enabled: true
|
data/azure-pipelines.yml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# Ruby
|
2
|
-
# Package your Ruby project.
|
3
|
-
# Add steps that install rails, analyze code, save build artifacts, deploy, and more:
|
4
|
-
# https://docs.microsoft.com/azure/devops/pipelines/languages/ruby
|
5
|
-
jobs:
|
6
|
-
- template: ./ci-jobs/functional_test.yml
|
7
|
-
|
8
|
-
# Runs tests nightly to make sure they works against appium@beta
|
9
|
-
schedules:
|
10
|
-
- cron: "0 0 * * *"
|
11
|
-
displayName: Daily Nightly build (UTC)
|
12
|
-
branches:
|
13
|
-
include:
|
14
|
-
- master
|
15
|
-
always: true
|