bucky-core 0.10.7 → 0.10.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ba4cfdfb0d88340a326b8bb17c55517e8f4e9838
4
- data.tar.gz: d52796926a4bdd0bce45326f73aeb4b0bddd62f7
2
+ SHA256:
3
+ metadata.gz: 0d707ed46592faf5ea66d1e1cb9201aa59bcd3c2959ee7d9a445763ec49511f4
4
+ data.tar.gz: 0a8ee487e345f3a7fbbbf37920dc48ccfcc106d5f30a206f5845869459223b59
5
5
  SHA512:
6
- metadata.gz: f30e29812db9cf2b91c771e5565d4d477dd0c2f59675878a3a17c24891c2d3aea99cf650609ea60ee5b6c2665cf40d8c22a098d12773782bf211f2245659daa4
7
- data.tar.gz: c8018498f6471c2744e8142c883853b2a9575e96b21aa2f27bdd7e1cf33a0e596de9334348201d6a089922c164343cbed4fffea7f20678d785983af8759617a2
6
+ metadata.gz: 104bc7662af8ccd6739f87c4e9fa7b44853b20617456c3e3891bf5501e60c87a30d0ceca5eaf3683a169b6a70e2220936bec0684fdd298e980781559372984b6
7
+ data.tar.gz: fa0026be7ba175c1a5b5f6dac762ee273db31ef4b3c598e385a29ffb1e52eb63ee4b46ef3999ff1885771006cdbd508533f032852e5f8971ebb7f0e832420c79
data/.circleci/config.yml CHANGED
@@ -5,7 +5,7 @@ jobs:
5
5
  steps:
6
6
  - checkout
7
7
  - restore_cache:
8
- key: docker-{{ checksum ".circleci/config.yml" }}-{{ checksum "docker-compose.system-test.yml" }}-{{ checksum "Dockerfile.system-test" }}-{{ checksum "bucky-core.gemspec" }}-{{ checksum ".dockerignore" }}-{{ checksum "Gemfile.lock" }}
8
+ key: docker-{{ checksum ".circleci/config.yml" }}-{{ checksum "docker-compose.system-test.yml" }}-{{ checksum "Dockerfile.system-test" }}-{{ checksum "bucky-core.gemspec" }}-{{ checksum ".dockerignore" }}
9
9
  - run:
10
10
  command: |
11
11
  if [ ! -f ~/caches/images.tar ]; then
@@ -14,7 +14,7 @@ jobs:
14
14
  docker save $(docker images | awk 'NR>=2 && ! /^<none>/{print $1}') -o ~/caches/images.tar
15
15
  fi
16
16
  - save_cache:
17
- key: docker-{{ checksum ".circleci/config.yml" }}-{{ checksum "docker-compose.system-test.yml" }}-{{ checksum "Dockerfile.system-test" }}-{{ checksum "bucky-core.gemspec" }}-{{ checksum ".dockerignore" }}-{{ checksum "Gemfile.lock" }}
17
+ key: docker-{{ checksum ".circleci/config.yml" }}-{{ checksum "docker-compose.system-test.yml" }}-{{ checksum "Dockerfile.system-test" }}-{{ checksum "bucky-core.gemspec" }}-{{ checksum ".dockerignore" }}
18
18
  paths: ~/caches/images.tar
19
19
  system_test:
20
20
  machine: true
@@ -22,7 +22,7 @@ jobs:
22
22
  steps:
23
23
  - checkout
24
24
  - restore_cache:
25
- key: docker-{{ checksum ".circleci/config.yml" }}-{{ checksum "docker-compose.system-test.yml" }}-{{ checksum "Dockerfile.system-test" }}-{{ checksum "bucky-core.gemspec" }}-{{ checksum ".dockerignore" }}-{{ checksum "Gemfile.lock" }}
25
+ key: docker-{{ checksum ".circleci/config.yml" }}-{{ checksum "docker-compose.system-test.yml" }}-{{ checksum "Dockerfile.system-test" }}-{{ checksum "bucky-core.gemspec" }}-{{ checksum ".dockerignore" }}
26
26
  - run:
27
27
  command: docker load -q -i ~/caches/images.tar
28
28
  - run:
@@ -37,7 +37,7 @@ jobs:
37
37
  unit_test:
38
38
  working_directory: ~/bucky-core
39
39
  docker:
40
- - image: circleci/ruby:2.4.2-node
40
+ - image: circleci/ruby:2.5.8
41
41
  environment:
42
42
  CC_TEST_REPORTER_ID: fd7bd9d517bdf8953c4d4803ca4ad7539d12d5c760048b8daf80cbc7d54fb262
43
43
  steps:
@@ -62,7 +62,7 @@ jobs:
62
62
  ./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
63
63
  static_code_analysis:
64
64
  docker:
65
- - image: circleci/ruby:2.4.2-node
65
+ - image: circleci/ruby:2.5.8
66
66
  steps:
67
67
  - checkout
68
68
  - type: cache-restore
@@ -77,7 +77,7 @@ jobs:
77
77
  path: report.html
78
78
  publish_to_rubygems:
79
79
  docker:
80
- - image: circleci/ruby:2.4.1
80
+ - image: circleci/ruby:2.5.8
81
81
  steps:
82
82
  - add_ssh_keys:
83
83
  finerprints:
@@ -130,4 +130,6 @@ workflows:
130
130
  tags:
131
131
  only: /^v[0-9]{1,}(\.[0-9]{1,}){2}$/
132
132
  branches:
133
- ignore: /.*/
133
+ ignore: /.*/
134
+ requires:
135
+ - publish_to_rubygems
@@ -1,4 +1,4 @@
1
- VERSION=$(git describe --tags | sed -e 's/^v//')
1
+ VERSION=$(git describe --tags | grep -o -E "([0-9]+\.){1}[0-9]+(\.[0-9]+)?" | head -n1)
2
2
  git config user.email "bucky-operator@users.noreply.github.com"
3
3
  git config user.name "bucky-operator"
4
4
  # Update version.rb
data/.rubocop.yml CHANGED
@@ -8,7 +8,7 @@ AllCops:
8
8
  - 'template/**/*'
9
9
  - 'tmp/**/*'
10
10
  - 'vendor/**/*'
11
- TargetRubyVersion: 2.4
11
+ TargetRubyVersion: 2.5
12
12
 
13
13
  AbcSize:
14
14
  Enabled: false
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ruby:2.4.2-alpine
1
+ FROM ruby:2.5.8-alpine
2
2
  ENV LANG ja_JP.UTF-8
3
3
  ENV PAGER busybox less
4
4
 
@@ -21,19 +21,7 @@ RUN apk update && \
21
21
  yaml-dev \
22
22
  zlib-dev
23
23
 
24
- ENV BC_DIR /bucky-core/
25
- WORKDIR $BC_DIR
26
- COPY . $BC_DIR
27
-
28
- RUN \
29
- gem install bundler -v 1.17.3 && \
30
- echo 'gem: --no-document' >> ~/.gemrc && \
31
- cp ~/.gemrc /etc/gemrc && \
32
- chmod uog+r /etc/gemrc && \
33
- bundle config --global build.nokogiri --use-system-libraries && \
34
- bundle config --global jobs 4 && \
35
- bundle install && \
36
- rm -rf ~/.gem
24
+ RUN gem install bucky-core
37
25
 
38
26
  WORKDIR /app
39
27
  RUN chown -R nobody:nobody /app
@@ -1,4 +1,4 @@
1
- FROM ruby:2.4.2-alpine
1
+ FROM ruby:2.5.8-alpine
2
2
  ENV LANG ja_JP.UTF-8
3
3
  ENV PAGER busybox less
4
4
 
@@ -29,6 +29,7 @@ RUN git clone https://github.com/bats-core/bats-core.git /tmp/bats-core \
29
29
  && rm -rf /tmp/bats-core
30
30
 
31
31
  ENV BC_DIR /bucky-core/
32
+ ENV PATH /bucky-core/exe/:$PATH
32
33
  WORKDIR $BC_DIR
33
34
  COPY . $BC_DIR
34
35
 
data/Gemfile.lock CHANGED
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bucky-core (0.10.6)
4
+ bucky-core (0.10.7)
5
5
  addressable (~> 2.5)
6
6
  color_echo (~> 3.1)
7
- json (~> 2.1)
8
- nokogiri (~> 1.10.4)
7
+ json (~> 2.3.0)
8
+ nokogiri (~> 1.11.1)
9
9
  parallel (~> 1.11)
10
10
  ruby-mysql (~> 2.9)
11
11
  selenium-webdriver (~> 3.142)
@@ -18,54 +18,56 @@ GEM
18
18
  addressable (2.7.0)
19
19
  public_suffix (>= 2.0.2, < 5.0)
20
20
  ansi (1.5.0)
21
- ast (2.4.0)
21
+ ast (2.4.1)
22
22
  awesome_print (1.8.0)
23
23
  binding_of_caller (0.8.0)
24
24
  debug_inspector (>= 0.0.1)
25
- byebug (9.1.0)
25
+ byebug (11.1.3)
26
26
  childprocess (3.0.0)
27
- coderay (1.1.2)
27
+ coderay (1.1.3)
28
28
  color_echo (3.1.1)
29
- debug_inspector (0.0.3)
30
- diff-lcs (1.3)
29
+ debug_inspector (1.0.0)
30
+ diff-lcs (1.4.4)
31
31
  docile (1.1.5)
32
32
  hirb (0.7.3)
33
- jaro_winkler (1.5.2)
34
- json (2.1.0)
35
- method_source (0.9.0)
36
- mini_portile2 (2.4.0)
37
- nokogiri (1.10.9)
38
- mini_portile2 (~> 2.4.0)
39
- parallel (1.12.1)
40
- parser (2.6.3.0)
41
- ast (~> 2.4.0)
42
- power_assert (1.1.7)
43
- pry (0.11.3)
44
- coderay (~> 1.1.0)
45
- method_source (~> 0.9.0)
46
- pry-byebug (3.5.1)
47
- byebug (~> 9.1)
48
- pry (~> 0.10)
49
- pry-stack_explorer (0.4.9.2)
50
- binding_of_caller (>= 0.7)
51
- pry (>= 0.9.11)
52
- public_suffix (4.0.3)
33
+ jaro_winkler (1.5.4)
34
+ json (2.3.1)
35
+ method_source (1.0.0)
36
+ mini_portile2 (2.5.0)
37
+ nokogiri (1.11.1)
38
+ mini_portile2 (~> 2.5.0)
39
+ racc (~> 1.4)
40
+ parallel (1.20.1)
41
+ parser (3.0.0.0)
42
+ ast (~> 2.4.1)
43
+ power_assert (1.2.0)
44
+ pry (0.13.1)
45
+ coderay (~> 1.1)
46
+ method_source (~> 1.0)
47
+ pry-byebug (3.9.0)
48
+ byebug (~> 11.0)
49
+ pry (~> 0.13.0)
50
+ pry-stack_explorer (0.4.13)
51
+ binding_of_caller (~> 0.7)
52
+ pry (~> 0.13)
53
+ public_suffix (4.0.6)
54
+ racc (1.5.2)
53
55
  rainbow (3.0.0)
54
- rake (13.0.1)
55
- rspec (3.7.0)
56
- rspec-core (~> 3.7.0)
57
- rspec-expectations (~> 3.7.0)
58
- rspec-mocks (~> 3.7.0)
59
- rspec-core (3.7.1)
60
- rspec-support (~> 3.7.0)
61
- rspec-expectations (3.7.0)
56
+ rake (13.0.3)
57
+ rspec (3.10.0)
58
+ rspec-core (~> 3.10.0)
59
+ rspec-expectations (~> 3.10.0)
60
+ rspec-mocks (~> 3.10.0)
61
+ rspec-core (3.10.1)
62
+ rspec-support (~> 3.10.0)
63
+ rspec-expectations (3.10.1)
62
64
  diff-lcs (>= 1.2.0, < 2.0)
63
- rspec-support (~> 3.7.0)
64
- rspec-mocks (3.7.0)
65
+ rspec-support (~> 3.10.0)
66
+ rspec-mocks (3.10.1)
65
67
  diff-lcs (>= 1.2.0, < 2.0)
66
- rspec-support (~> 3.7.0)
67
- rspec-support (3.7.0)
68
- rspec_junit_formatter (0.3.0)
68
+ rspec-support (~> 3.10.0)
69
+ rspec-support (3.10.1)
70
+ rspec_junit_formatter (0.4.1)
69
71
  rspec-core (>= 2, < 4, != 2.12.0)
70
72
  rubocop (0.68.1)
71
73
  jaro_winkler (~> 1.5.1)
@@ -75,7 +77,7 @@ GEM
75
77
  ruby-progressbar (~> 1.7)
76
78
  unicode-display_width (>= 1.4.0, < 1.6)
77
79
  ruby-mysql (2.9.14)
78
- ruby-progressbar (1.10.0)
80
+ ruby-progressbar (1.11.0)
79
81
  rubyzip (2.3.0)
80
82
  selenium-webdriver (3.142.7)
81
83
  childprocess (>= 0.5, < 4.0)
@@ -90,7 +92,7 @@ GEM
90
92
  hirb
91
93
  simplecov
92
94
  simplecov-html (0.10.2)
93
- test-unit (3.3.5)
95
+ test-unit (3.3.9)
94
96
  power_assert
95
97
  unicode-display_width (1.5.0)
96
98
 
@@ -108,7 +110,8 @@ DEPENDENCIES
108
110
  rake (~> 13)
109
111
  rspec (~> 3.6)
110
112
  rspec_junit_formatter (~> 0.3)
111
- rubocop (~> 0.63)
113
+ rubocop (~> 0.68.1)
114
+ simplecov (~> 0.15.1)
112
115
  simplecov-console (~> 0.4.2)
113
116
 
114
117
  BUNDLED WITH
data/bucky-core.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
 
17
17
  When working with Bucky-management, Bucky-core can also record test results. You can make test results visualization by using Bucky-management.
18
18
  DESCRIPTION
19
- spec.required_ruby_version = '>= 2.4.2'
19
+ spec.required_ruby_version = '>= 2.5'
20
20
  spec.homepage = 'https://github.com/lifull-dev/bucky-core'
21
21
  spec.license = 'Apache License 2.0'
22
22
 
@@ -36,13 +36,14 @@ Gem::Specification.new do |spec|
36
36
  spec.add_development_dependency 'rake', '~> 13'
37
37
  spec.add_development_dependency 'rspec', '~> 3.6'
38
38
  spec.add_development_dependency 'rspec_junit_formatter', '~> 0.3'
39
- spec.add_development_dependency 'rubocop', '~> 0.63'
39
+ spec.add_development_dependency 'rubocop', '~> 0.68.1'
40
+ spec.add_development_dependency 'simplecov', '~> 0.15.1'
40
41
  spec.add_development_dependency 'simplecov-console', '~> 0.4.2'
41
42
 
42
43
  spec.add_runtime_dependency 'addressable', '~> 2.5'
43
44
  spec.add_runtime_dependency 'color_echo', '~> 3.1'
44
- spec.add_runtime_dependency 'json', '~> 2.1'
45
- spec.add_runtime_dependency 'nokogiri', '~> 1.10.4'
45
+ spec.add_runtime_dependency 'json', '~> 2.3.0'
46
+ spec.add_runtime_dependency 'nokogiri', '~> 1.11.1'
46
47
  spec.add_runtime_dependency 'parallel', '~> 1.11'
47
48
  spec.add_runtime_dependency 'ruby-mysql', '~> 2.9'
48
49
  spec.add_runtime_dependency 'selenium-webdriver', '~> 3.142'
@@ -8,6 +8,9 @@ services:
8
8
  volumes:
9
9
  - .:/bucky-core
10
10
  tty: true
11
+ depends_on:
12
+ - chrome
13
+ - web
11
14
  chrome:
12
15
  container_name: bucky-chrome
13
16
  image: selenium/standalone-chrome-debug:3.141.59-oxygen
data/exe/bucky CHANGED
@@ -83,6 +83,9 @@ end
83
83
  opts.on('-l', '--label LABEL_NAME') do |v|
84
84
  test_cond[:label] = v
85
85
  end
86
+ opts.on('--xl', '--exclude_label EXCLUDE_LABEL_NAME') do |v|
87
+ test_cond[:xlabel] = v
88
+ end
86
89
  opts.on('-m', '--link_check_max_times') do |v|
87
90
  test_cond[:link_check_max_times] = v.to_i
88
91
  end
@@ -148,6 +148,11 @@ module Bucky
148
148
  suite[:cases].delete_if { |c| c[:labels].nil? }
149
149
  suite[:cases].delete_if { |c| !(test_cond[:label].sort - [c[:labels]].flatten.sort).empty? }
150
150
  end
151
+ # Exclude by label
152
+ if test_cond.key? :xlabel
153
+ # Delete test case that have specify label
154
+ suite[:cases].delete_if { |c| (test_cond[:xlabel].sort - [c[:labels]].flatten.sort).empty? }
155
+ end
151
156
  # If there is no option, do nothing.
152
157
  return suite unless test_cond.key? :case
153
158
 
@@ -37,7 +37,7 @@ module Bucky
37
37
 
38
38
  def click(args)
39
39
  elem = @pages.get_part(args)
40
- elem.location_once_scrolled_into_view
40
+ @driver.execute_script("arguments[0].scrollIntoView();", elem)
41
41
  # when click successfully, return of click is nil.
42
42
  wait_until_helper(5, 0.1, Selenium::WebDriver::Error::WebDriverError) { elem.click.nil? }
43
43
  end
data/lib/bucky/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bucky
4
4
  module Version
5
- VERSION = '0.10.7'
5
+ VERSION = '0.10.14'
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  :selenium_ip: 'docker_host_ip' # Default selenium ip. please set ip or 'docker_host_ip'. ip route | awk 'NR==1 {print $3}'
2
2
  :selenium_port: '4444' # Default selenium port
3
3
  :browser: :chrome # Only chrome
4
- :headless: false
4
+ :headless: true
5
5
  :e2e_parallel_num: 1
6
6
  :sp_device_name: :iphone
7
7
  :tablet_device_name: :ipad
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bucky/test_equipment/pageobject/base_pageobject'
3
+ require '/bucky-core/lib/bucky/test_equipment/pageobject/base_pageobject'
4
4
  module Services
5
5
  module ServiceA
6
6
  module Pc
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bucky/test_equipment/verifications/e2e_verification'
3
+ require '/bucky-core/lib/bucky/test_equipment/verifications/e2e_verification'
4
4
  module Services
5
5
  module ServiceA
6
6
  module Pc
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bucky/test_equipment/pageobject/base_pageobject'
3
+ require '/bucky-core/lib/bucky/test_equipment/pageobject/base_pageobject'
4
4
 
5
5
  module Services
6
6
  module ServiceA
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bucky/test_equipment/pageobject/base_pageobject'
3
+ require '/bucky-core/lib/bucky/test_equipment/pageobject/base_pageobject'
4
4
 
5
5
  module Services
6
6
  module ServiceA
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bucky-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.7
4
+ version: 0.10.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - NaotoKishino
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: exe
15
15
  cert_chain: []
16
- date: 2020-04-27 00:00:00.000000000 Z
16
+ date: 2021-02-26 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: awesome_print
@@ -147,14 +147,28 @@ dependencies:
147
147
  requirements:
148
148
  - - "~>"
149
149
  - !ruby/object:Gem::Version
150
- version: '0.63'
150
+ version: 0.68.1
151
151
  type: :development
152
152
  prerelease: false
153
153
  version_requirements: !ruby/object:Gem::Requirement
154
154
  requirements:
155
155
  - - "~>"
156
156
  - !ruby/object:Gem::Version
157
- version: '0.63'
157
+ version: 0.68.1
158
+ - !ruby/object:Gem::Dependency
159
+ name: simplecov
160
+ requirement: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - "~>"
163
+ - !ruby/object:Gem::Version
164
+ version: 0.15.1
165
+ type: :development
166
+ prerelease: false
167
+ version_requirements: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - "~>"
170
+ - !ruby/object:Gem::Version
171
+ version: 0.15.1
158
172
  - !ruby/object:Gem::Dependency
159
173
  name: simplecov-console
160
174
  requirement: !ruby/object:Gem::Requirement
@@ -203,28 +217,28 @@ dependencies:
203
217
  requirements:
204
218
  - - "~>"
205
219
  - !ruby/object:Gem::Version
206
- version: '2.1'
220
+ version: 2.3.0
207
221
  type: :runtime
208
222
  prerelease: false
209
223
  version_requirements: !ruby/object:Gem::Requirement
210
224
  requirements:
211
225
  - - "~>"
212
226
  - !ruby/object:Gem::Version
213
- version: '2.1'
227
+ version: 2.3.0
214
228
  - !ruby/object:Gem::Dependency
215
229
  name: nokogiri
216
230
  requirement: !ruby/object:Gem::Requirement
217
231
  requirements:
218
232
  - - "~>"
219
233
  - !ruby/object:Gem::Version
220
- version: 1.10.4
234
+ version: 1.11.1
221
235
  type: :runtime
222
236
  prerelease: false
223
237
  version_requirements: !ruby/object:Gem::Requirement
224
238
  requirements:
225
239
  - - "~>"
226
240
  - !ruby/object:Gem::Version
227
- version: 1.10.4
241
+ version: 1.11.1
228
242
  - !ruby/object:Gem::Dependency
229
243
  name: parallel
230
244
  requirement: !ruby/object:Gem::Requirement
@@ -453,15 +467,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
453
467
  requirements:
454
468
  - - ">="
455
469
  - !ruby/object:Gem::Version
456
- version: 2.4.2
470
+ version: '2.5'
457
471
  required_rubygems_version: !ruby/object:Gem::Requirement
458
472
  requirements:
459
473
  - - ">="
460
474
  - !ruby/object:Gem::Version
461
475
  version: '0'
462
476
  requirements: []
463
- rubyforge_project:
464
- rubygems_version: 2.6.13
477
+ rubygems_version: 3.0.3
465
478
  signing_key:
466
479
  specification_version: 4
467
480
  summary: System testing framework for web application.