superbara 0.2.2 → 0.2.3

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
2
  SHA256:
3
- metadata.gz: 82409939957b501b2e94acc2e5afd0f76b5bed2d92f40d6f51f3e764e823d865
4
- data.tar.gz: baae478148d6e7fa2139c2bfaae9d8f1aee6e8dcbb5505395c6c41c67ef06de9
3
+ metadata.gz: a0188f2dcdc9fb8c3faae941f2d1355296e6f98258eaac597a0881895548f493
4
+ data.tar.gz: ba9f0c8526fe54de819b24df2da591c2c6c628198590c388b97ba9dfd751834a
5
5
  SHA512:
6
- metadata.gz: a2025f86c926cdf48c5554e538ff7b9734f94e8dbcb3e36e17526bfa33db19f6517ee5200eed2137dd4e61f75b9f0cde5cf0c29cc137c7e5e538c08e3309f883
7
- data.tar.gz: b2eeef127443fcfaaf934d05cf5cefbc9d79edd4e9e065e3bf6c60ce2a89ce3cefd19b095a623feae4ac473d5e4372224aaf4802944a41a1c0df62e8645d396e
6
+ metadata.gz: 92b203fbef0dde423095ea2eb1623284dece0f5935e5b29f60983c984ffb77aaaec970c6bb9b56fab0281bc954cbec96770ac69b42165afe184dc1725c955c66
7
+ data.tar.gz: d2f71552541a9484f6e0c1511acaced5f7ff010446830fe9f75cea3599c76e33e31ce209649d5c851c822b5b5421a65c4ba5d7c277bd51e7144544fce2a04f7a
@@ -0,0 +1,9 @@
1
+ export KUNG_FRONTEND=noninteractive KUNG_ENV=test
2
+ kung rc chrome
3
+ kung rc superbara
4
+ kung stop chrome superbara
5
+
6
+ kung rc chrome
7
+ export CHROME_HOST=localhost CHROME_PORT=14444
8
+ echo q | exe/superbara run e2e
9
+ kung stop
@@ -0,0 +1,2 @@
1
+ rm superbara-*.gem
2
+ gem build superbara.gemspec
data/Dockerfile CHANGED
@@ -4,4 +4,4 @@ COPY superbara-${version}.gem /tmp
4
4
  RUN gem install /tmp/superbara-${version}.gem && rm /tmp/superbara-${version}.gem
5
5
 
6
6
  WORKDIR /tests
7
- ENTRYPOINT ["/usr/local/bundle/bin/superbara", "start"]
7
+ ENTRYPOINT ["/usr/local/bundle/bin/superbara", "run"]
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- superbara (0.2.2)
4
+ superbara (0.2.3)
5
5
  binding_of_caller (~> 0.8, >= 0.8.0)
6
6
  capybara (~> 3.0, >= 3.0.0)
7
7
  chromedriver-helper (~> 1.2.0, >= 1.2.0)
data/bin/release CHANGED
@@ -1,8 +1,10 @@
1
1
  #!/usr/bin/env sh
2
2
  set -e
3
+ version=$(ruby -r./lib/superbara -e "puts Superbara::VERSION")
3
4
 
4
5
  rake
5
- echo q | SUPERBARA_FRONTEND=noninteractive exe/superbara start e2e
6
+ SUPERBARA_FRONTEND=noninteractive exe/superbara run e2e
6
7
 
7
8
  gem build superbara.gemspec
9
+ KUNG_ENV=build VERSION=$version kung build
8
10
  rake release
@@ -0,0 +1,9 @@
1
+ version: '3.6'
2
+
3
+ services:
4
+ superbara:
5
+ build:
6
+ context: .
7
+ args:
8
+ version: "${VERSION}"
9
+ image: mattipaksula/superbara
@@ -0,0 +1,18 @@
1
+ version: '3.6'
2
+
3
+ services:
4
+ superbara:
5
+ image: mattipaksula/superbara
6
+ command: e2e
7
+ environment:
8
+ - SUPERBARA_FRONTEND=noninteractive
9
+ volumes:
10
+ - ./e2e:/tests/e2e
11
+ depends_on:
12
+ - chrome
13
+ chrome:
14
+ image: selenium/standalone-chrome-debug:3.11.0-californium
15
+ ports:
16
+ - 15900:5900
17
+ - 14444:4444
18
+ shm_size: 2g
data/docker-compose.yml CHANGED
@@ -1,12 +1 @@
1
1
  version: '3.6'
2
-
3
- services:
4
- superbara:
5
- build:
6
- context: .
7
- args:
8
- version: "${VERSION}"
9
- image: mattipaksula/superbara
10
- command: e2e
11
- volumes:
12
- - ./e2e:/tests/e2e
data/e2e/main.rb CHANGED
@@ -1,3 +1,7 @@
1
+ if ENV["CHROME_HOST"]
2
+ Capybara.default_driver = :chrome_remote
3
+ end
4
+
1
5
  visit "http://www.example.com"
2
6
  h1 = find "h1"
3
7
  h1.highlight
@@ -0,0 +1,7 @@
1
+ Capybara.register_driver :chrome_remote do
2
+ Capybara::Selenium::Driver.new(nil,
3
+ browser: :remote,
4
+ desired_capabilities: :chrome,
5
+ url: "http://#{ENV['CHROME_HOST'] || 'chrome'}:#{ENV['CHROME_PORT'] || '4444'}/wd/hub"
6
+ )
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Superbara
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
data/lib/superbara.rb CHANGED
@@ -13,6 +13,7 @@ require_relative "superbara/helpers"
13
13
 
14
14
  require_relative "superbara/drivers/chrome"
15
15
  require_relative "superbara/drivers/chrome_headless"
16
+ require_relative "superbara/drivers/chrome_remote"
16
17
 
17
18
  trap "SIGINT" do
18
19
  puts "
data/lib/supershell CHANGED
@@ -20,6 +20,11 @@ Edit () {
20
20
 
21
21
  Prompt () {
22
22
  while true; do
23
+ if [ "$SUPERBARA_FRONTEND" = "noninteractive" ]; then
24
+ echo "non-interactive mode enabled"
25
+ break
26
+ fi
27
+
23
28
  printf "superbara $1 (enter or [r]estart, [e]dit, [q]uit) > "
24
29
  read input
25
30
  case "$input" in
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superbara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matti Paksula
@@ -199,6 +199,8 @@ extensions: []
199
199
  extra_rdoc_files: []
200
200
  files:
201
201
  - ".gitignore"
202
+ - ".kung/build/hooks/post-build"
203
+ - ".kung/build/hooks/pre-build"
202
204
  - ".rspec"
203
205
  - ".ruby-gemset"
204
206
  - ".ruby-version"
@@ -210,6 +212,8 @@ files:
210
212
  - bin/autotest
211
213
  - bin/console
212
214
  - bin/release
215
+ - docker-compose.build.yml
216
+ - docker-compose.test.yml
213
217
  - docker-compose.yml
214
218
  - e2e/main.rb
215
219
  - exe/superbara
@@ -218,6 +222,7 @@ files:
218
222
  - lib/superbara.rb
219
223
  - lib/superbara/drivers/chrome.rb
220
224
  - lib/superbara/drivers/chrome_headless.rb
225
+ - lib/superbara/drivers/chrome_remote.rb
221
226
  - lib/superbara/dsl.rb
222
227
  - lib/superbara/helpers.rb
223
228
  - lib/superbara/rspec.rb