Skip to content

Commit

Permalink
Acceptance test the disabled pagination of #96
Browse files Browse the repository at this point in the history
  • Loading branch information
PragTob committed Feb 23, 2020
1 parent 0082b3f commit 0824491
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 3 deletions.
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ AllCops:
- "spec/fixtures/empty_euc-jp.rb"
- "spec/fixtures/euc-jp-shebang.rb"
- "test_projects/encodings/**/*"
- "test_projects/pagination/**/*"
- "tmp/**/*"
- "vendor/bundle/**/*"
- "vendor/bundle/**/.*"
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source "https://rubygems.org"
# gem "simplecov-html", path: File.dirname(__FILE__) + "/../simplecov-html"

# Uncomment this to use development version of html formatter from github
gem "simplecov-html", github: "colszowka/simplecov-html", branch: "revert-encoding-replace"
gem "simplecov-html", github: "colszowka/simplecov-html", branch: "disable-pagination"

group :development do
gem "apparition", "0.5.0"
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GIT
remote: https://github.com/colszowka/simplecov-html.git
revision: abf08dc387856f2c22e45e33d7c786d5bfc57d5e
branch: revert-encoding-replace
revision: ae1d70a6b2888e16fa138b020a0ec24f9cd8812f
branch: disable-pagination
specs:
simplecov-html (0.12.0)

Expand Down
22 changes: 22 additions & 0 deletions features/pagination.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@rspec

Feature:
We don't want to have pagination.
But it's good to have a test project that would at least trigger
pagination for 10+ source files or so, so we can avoid nasty surprises.

Background:
Given I'm working on the project "pagination"

Scenario:
When I open the coverage report generated with `bundle exec rspec`
Then I should see the groups:
| name | coverage | files |
| All Files | 100.0% | 12 |

When I open the detailed view for "lib/a.rb"
Then "nothing to see here" should be visible

When I close the detailed view
And I open the detailed view for "lib/l.rb"
Then "nothing to see here" should be visible
1 change: 1 addition & 0 deletions test_projects/pagination/.rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
1 change: 1 addition & 0 deletions test_projects/pagination/lib/a.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# nothing to see here
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions test_projects/pagination/lib/l.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# nothing to see here
7 changes: 7 additions & 0 deletions test_projects/pagination/spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

require "simplecov"

SimpleCov.start

Dir["lib/*.rb"].each {|file| require_relative "../#{file}" }

0 comments on commit 0824491

Please sign in to comment.