Skip to content

Commit 2cbf23f

Browse files
committed
Use minitest-reporters instead of minitest-ci
The win: there's a "spec" reporter that outputs one line per test. Since docker-compose buffers log messages by line, this gives much quicker feedback into the test framework, instead of simply showing a single line once every test is done.
1 parent 348491b commit 2cbf23f

File tree

4 files changed

+23
-13
lines changed

4 files changed

+23
-13
lines changed

docker/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN set -x \
1616
ca-certificates \
1717
chromium \
1818
curl \
19+
libffi-dev \
1920
libgconf2.0 \
2021
ruby \
2122
ruby-dev \

docker/Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source 'https://rubygems.org'
22

33
gem 'capybara'
4-
gem 'minitest-ci'
4+
gem 'minitest-reporters'
55
gem 'selenium-webdriver'

docker/Gemfile.lock

+16-10
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ GEM
33
specs:
44
addressable (2.5.2)
55
public_suffix (>= 2.0.2, < 4.0)
6+
ansi (1.5.0)
7+
builder (3.2.3)
68
capybara (2.17.0)
79
addressable
810
mini_mime (>= 0.1.3)
@@ -12,22 +14,26 @@ GEM
1214
xpath (>= 2.0, < 4.0)
1315
childprocess (0.8.0)
1416
ffi (~> 1.0, >= 1.0.11)
15-
ffi (1.9.18)
17+
ffi (1.9.21)
1618
mini_mime (1.0.0)
1719
mini_portile2 (2.3.0)
18-
minitest (5.11.1)
19-
minitest-ci (3.3.0)
20-
minitest (>= 5.0.6)
21-
nokogiri (1.8.1)
20+
minitest (5.11.3)
21+
minitest-reporters (1.1.19)
22+
ansi
23+
builder
24+
minitest (>= 5.0)
25+
ruby-progressbar
26+
nokogiri (1.8.2)
2227
mini_portile2 (~> 2.3.0)
2328
public_suffix (3.0.1)
24-
rack (2.0.3)
29+
rack (2.0.4)
2530
rack-test (0.8.2)
2631
rack (>= 1.0, < 3)
32+
ruby-progressbar (1.9.0)
2733
rubyzip (1.2.1)
28-
selenium-webdriver (3.8.0)
34+
selenium-webdriver (3.9.0)
2935
childprocess (~> 0.5)
30-
rubyzip (~> 1.0)
36+
rubyzip (~> 1.2)
3137
xpath (3.0.0)
3238
nokogiri (~> 1.8)
3339

@@ -36,8 +42,8 @@ PLATFORMS
3642

3743
DEPENDENCIES
3844
capybara
39-
minitest-ci
45+
minitest-reporters
4046
selenium-webdriver
4147

4248
BUNDLED WITH
43-
1.16.0
49+
1.15.4

skeleton/spec/spec_helper.rb

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'minitest/autorun'
2-
require 'minitest/ci'
2+
require 'minitest/reporters'
33
require 'minitest/spec'
44
require 'capybara'
55
require 'selenium-webdriver'
@@ -12,7 +12,10 @@
1212
WAIT_LOAD = 10 # 10s: how long to wait for a page to load
1313
WAIT_SLOW = 70 # 60s: how long to wait for Overview to complete an import job
1414

15-
Minitest::Ci.report_dir = '/app/reports'
15+
Minitest::Reporters.use! [
16+
Minitest::Reporters::SpecReporter.new,
17+
Minitest::Reporters::JUnitReporter.new('/app/reports')
18+
]
1619

1720
def chrome_args
1821
# Dynamic: each time we call this, create a new user-data-dir

0 commit comments

Comments
 (0)