retest 0.8.1 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba9ca783c69da878dff89276c488918b06d8436aa2eaeabeaeb292faa27b4ba3
4
- data.tar.gz: c4bc3fd1a10673be4dcd32fc51f6d332a08a2e73ba44b3253cc9b857bcc19091
3
+ metadata.gz: 6e058f016e23d459435e738ff0cf3406d65e39b5a504e19abfe3df6dcc695376
4
+ data.tar.gz: f8c6039063902c21e3b5917dc768b46abdf599c14368984892ba41624565ede0
5
5
  SHA512:
6
- metadata.gz: 6ae36ae04af283b34823305cc7f15174e65002c01f301262eb573b6dff9ba5a492db3be1891ddcdcb2840a5a404e0f571548853bb4a0215d817fb99d075df2b0
7
- data.tar.gz: 911e035acbde5d9d88dd23ad98ab136e1dcbf3adadf6db9a78e60665a304aacc5feeb27903fd87ff2cfb65e490893956a8e70b63c1f454635fbf607dcb6e76de
6
+ metadata.gz: 67b0d493529e376e1a0f439c618f3e0c8f208ad9ba7ea64c023d15d09fbd641f54106d6ece13be8941a586a924285d23e89940da5e271a559ba17286d33c0214
7
+ data.tar.gz: d880ee6039b6d0f11a6e420df26cf56358ed74291939717bc4e0db51db8c4b6e829e1bceee58af8490a9b506020c57cc0d4cde6fc7cde889691c61c5787a8956
@@ -14,7 +14,7 @@ on:
14
14
  branches: [ main ]
15
15
 
16
16
  jobs:
17
- test:
17
+ unit-tests:
18
18
  runs-on: ${{ matrix.os }}
19
19
  strategy:
20
20
  matrix:
@@ -36,4 +36,21 @@ jobs:
36
36
  bundler-cache: true
37
37
  - run: bundle install
38
38
  - run: bundle exec rake
39
- - run: CUCUMBER_PUBLISH_QUIET=true bundle exec cucumber
39
+
40
+ app-tests:
41
+ name: ${{ matrix.repo }} feature specs
42
+ runs-on: ubuntu-latest
43
+ strategy:
44
+ matrix:
45
+ repo:
46
+ - ruby-app
47
+ - rails-app
48
+ - hanami-app
49
+ steps:
50
+ - uses: actions/checkout@v2
51
+ - name: Set up Ruby
52
+ uses: ruby/setup-ruby@v1
53
+ with:
54
+ ruby-version: 2.5
55
+ bundler-cache: true
56
+ - run: bin/test/${{ matrix.repo }}
data/Gemfile CHANGED
@@ -3,8 +3,6 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in retest.gemspec
4
4
  gemspec
5
5
 
6
- gem "cucumber", "~> 5.1"
7
- gem "aruba", "~> 1.0"
8
6
  gem "rake", "~> 12.0"
9
7
  gem "minitest", "~> 5.0"
10
8
  gem "byebug"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- retest (0.8.1)
4
+ retest (0.8.2)
5
5
  listen (~> 3.2)
6
6
  string-similarity (~> 2.1)
7
7
  tty-option (~> 0.1)
@@ -9,95 +9,24 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (6.0.3.2)
13
- concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (>= 0.7, < 2)
15
- minitest (~> 5.1)
16
- tzinfo (~> 1.1)
17
- zeitwerk (~> 2.2, >= 2.2.2)
18
- aruba (1.0.3)
19
- childprocess (>= 2.0, < 5.0)
20
- contracts (~> 0.16.0)
21
- cucumber (>= 2.4, < 6.0)
22
- ffi (~> 1.9)
23
- rspec-expectations (~> 3.4)
24
- thor (~> 1.0)
25
- builder (3.2.4)
26
12
  byebug (11.1.3)
27
- childprocess (4.0.0)
28
- concurrent-ruby (1.1.7)
29
- contracts (0.16.0)
30
- cucumber (5.1.0)
31
- builder (~> 3.2, >= 3.2.4)
32
- cucumber-core (~> 8.0, >= 8.0.1)
33
- cucumber-create-meta (~> 2.0, >= 2.0.1)
34
- cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
35
- cucumber-gherkin (~> 15.0, >= 15.0.2)
36
- cucumber-html-formatter (~> 9.0, >= 9.0.0)
37
- cucumber-messages (~> 13.0, >= 13.0.1)
38
- cucumber-wire (~> 4.0, >= 4.0.1)
39
- diff-lcs (~> 1.4, >= 1.4.4)
40
- multi_test (~> 0.1, >= 0.1.2)
41
- sys-uname (~> 1.2, >= 1.2.1)
42
- cucumber-core (8.0.1)
43
- cucumber-gherkin (~> 15.0, >= 15.0.2)
44
- cucumber-messages (~> 13.0, >= 13.0.1)
45
- cucumber-tag-expressions (~> 2.0, >= 2.0.4)
46
- cucumber-create-meta (2.0.1)
47
- cucumber-messages (~> 13.0, >= 13.0.1)
48
- sys-uname (~> 1.2, >= 1.2.1)
49
- cucumber-cucumber-expressions (10.3.0)
50
- cucumber-gherkin (15.0.2)
51
- cucumber-messages (~> 13.0, >= 13.0.1)
52
- cucumber-html-formatter (9.0.0)
53
- cucumber-messages (~> 13.0, >= 13.0.1)
54
- cucumber-messages (13.0.1)
55
- protobuf-cucumber (~> 3.10, >= 3.10.8)
56
- cucumber-tag-expressions (2.0.4)
57
- cucumber-wire (4.0.1)
58
- cucumber-core (~> 8.0, >= 8.0.1)
59
- cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
60
- cucumber-messages (~> 13.0, >= 13.0.1)
61
- diff-lcs (1.4.4)
62
- ffi (1.13.1)
63
- i18n (1.8.5)
64
- concurrent-ruby (~> 1.0)
13
+ ffi (1.14.2)
65
14
  listen (3.4.1)
66
15
  rb-fsevent (~> 0.10, >= 0.10.3)
67
16
  rb-inotify (~> 0.9, >= 0.9.10)
68
- middleware (0.1.0)
69
17
  minitest (5.14.1)
70
- multi_test (0.1.2)
71
- protobuf-cucumber (3.10.8)
72
- activesupport (>= 3.2)
73
- middleware
74
- thor
75
- thread_safe
76
18
  rake (12.3.3)
77
19
  rb-fsevent (0.10.4)
78
20
  rb-inotify (0.10.1)
79
21
  ffi (~> 1.0)
80
- rspec-expectations (3.9.2)
81
- diff-lcs (>= 1.2.0, < 2.0)
82
- rspec-support (~> 3.9.0)
83
- rspec-support (3.9.3)
84
22
  string-similarity (2.1.0)
85
- sys-uname (1.2.1)
86
- ffi (>= 1.0.0)
87
- thor (1.0.1)
88
- thread_safe (0.3.6)
89
23
  tty-option (0.1.0)
90
- tzinfo (1.2.7)
91
- thread_safe (~> 0.1)
92
- zeitwerk (2.4.0)
93
24
 
94
25
  PLATFORMS
95
26
  ruby
96
27
 
97
28
  DEPENDENCIES
98
- aruba (~> 1.0)
99
29
  byebug
100
- cucumber (~> 5.1)
101
30
  minitest (~> 5.0)
102
31
  rake (~> 12.0)
103
32
  retest!
data/README.md CHANGED
@@ -104,6 +104,11 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
104
104
 
105
105
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
106
106
 
107
+ To run integration tests on one setup (ex: hanami-app): `bin/test/hanami-app`
108
+
109
+ To access an app container (ex: ruby-app): `docker-compose -f features/ruby-app/docker-compose.yml run retest sh`
110
+
111
+
107
112
  ## Contributing
108
113
 
109
114
  Bug reports and pull requests are welcome on GitHub at https://github.com/alexb52/retest.
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+
3
+ bundle install
4
+ bundle exec rake build
5
+ ls -t pkg | head -n1 | xargs -I {} mv pkg/{} features/hanami-app/retest.gem
6
+ docker-compose -f features/hanami-app/docker-compose.yml up --build
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+
3
+ bundle install
4
+ bundle exec rake build
5
+ ls -t pkg | head -n1 | xargs -I {} mv pkg/{} features/rails-app/retest.gem
6
+ docker-compose -f features/rails-app/docker-compose.yml up --build
data/bin/test/ruby-app ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+
3
+ bundle install
4
+ bundle exec rake build
5
+ ls -t pkg | head -n1 | xargs -I {} mv pkg/{} features/ruby-app/retest.gem
6
+ docker-compose -f features/ruby-app/docker-compose.yml up --build
data/exe/retest CHANGED
@@ -6,7 +6,10 @@ $stdout.sync = true
6
6
 
7
7
  options = Retest::Options.new(ARGV)
8
8
 
9
- return puts options.help if options.help?
9
+ if options.help?
10
+ $stdout.puts options.help
11
+ return
12
+ end
10
13
 
11
14
  Retest.start(options.command) # not blocking
12
15
 
@@ -1,3 +1,3 @@
1
1
  module Retest
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: retest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Barret
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-07 00:00:00.000000000 Z
11
+ date: 2021-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: string-similarity
@@ -71,6 +71,9 @@ files:
71
71
  - Rakefile
72
72
  - bin/console
73
73
  - bin/setup
74
+ - bin/test/hanami-app
75
+ - bin/test/rails-app
76
+ - bin/test/ruby-app
74
77
  - exe/retest
75
78
  - lib/retest.rb
76
79
  - lib/retest/options.rb