Skip to content

Commit

Permalink
Use minitest-reporters instead of minitest-ci
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
adamhooper committed Feb 9, 2018
1 parent 348491b commit 2cbf23f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN set -x \
ca-certificates \
chromium \
curl \
libffi-dev \
libgconf2.0 \
ruby \
ruby-dev \
Expand Down
2 changes: 1 addition & 1 deletion docker/Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source 'https://rubygems.org'

gem 'capybara'
gem 'minitest-ci'
gem 'minitest-reporters'
gem 'selenium-webdriver'
26 changes: 16 additions & 10 deletions docker/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ GEM
specs:
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
ansi (1.5.0)
builder (3.2.3)
capybara (2.17.0)
addressable
mini_mime (>= 0.1.3)
Expand All @@ -12,22 +14,26 @@ GEM
xpath (>= 2.0, < 4.0)
childprocess (0.8.0)
ffi (~> 1.0, >= 1.0.11)
ffi (1.9.18)
ffi (1.9.21)
mini_mime (1.0.0)
mini_portile2 (2.3.0)
minitest (5.11.1)
minitest-ci (3.3.0)
minitest (>= 5.0.6)
nokogiri (1.8.1)
minitest (5.11.3)
minitest-reporters (1.1.19)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
nokogiri (1.8.2)
mini_portile2 (~> 2.3.0)
public_suffix (3.0.1)
rack (2.0.3)
rack (2.0.4)
rack-test (0.8.2)
rack (>= 1.0, < 3)
ruby-progressbar (1.9.0)
rubyzip (1.2.1)
selenium-webdriver (3.8.0)
selenium-webdriver (3.9.0)
childprocess (~> 0.5)
rubyzip (~> 1.0)
rubyzip (~> 1.2)
xpath (3.0.0)
nokogiri (~> 1.8)

Expand All @@ -36,8 +42,8 @@ PLATFORMS

DEPENDENCIES
capybara
minitest-ci
minitest-reporters
selenium-webdriver

BUNDLED WITH
1.16.0
1.15.4
7 changes: 5 additions & 2 deletions skeleton/spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'minitest/autorun'
require 'minitest/ci'
require 'minitest/reporters'
require 'minitest/spec'
require 'capybara'
require 'selenium-webdriver'
Expand All @@ -12,7 +12,10 @@
WAIT_LOAD = 10 # 10s: how long to wait for a page to load
WAIT_SLOW = 70 # 60s: how long to wait for Overview to complete an import job

Minitest::Ci.report_dir = '/app/reports'
Minitest::Reporters.use! [
Minitest::Reporters::SpecReporter.new,
Minitest::Reporters::JUnitReporter.new('/app/reports')
]

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

0 comments on commit 2cbf23f

Please sign in to comment.