Skip to content

Commit

Permalink
conditional SingleCov
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Feb 22, 2019
1 parent 14a7c30 commit 8ad362d
Show file tree
Hide file tree
Showing 20 changed files with 23 additions and 21 deletions.
2 changes: 1 addition & 1 deletion test/pagy/backend_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require_relative '../test_helper'

SingleCov.covered!
SingleCov.covered! unless ENV['SKIP_SINGLECOV']

describe Pagy::Backend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/countless_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../test_helper'
require 'pagy/extras/countless'

SingleCov.covered!
SingleCov.covered! unless ENV['SKIP_SINGLECOV']

describe Pagy::Countless do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/extras/array_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../../test_helper'
require 'pagy/extras/array'

SingleCov.covered!
SingleCov.covered! unless ENV['SKIP_SINGLECOV']

describe Pagy::Backend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/extras/bootstrap_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../../test_helper'
require 'pagy/extras/bootstrap'

SingleCov.covered!(uncovered: 1) # undefined TRIM for compact helper, tested in trim_test
SingleCov.covered!(uncovered: 1) unless ENV['SKIP_SINGLECOV'] # undefined TRIM for compact helper, tested in trim_test

describe Pagy::Frontend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/extras/bulma_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../../test_helper'
require 'pagy/extras/bulma'

SingleCov.covered!(uncovered: 1) # undefined TRIM for compact helper, tested in trim_test
SingleCov.covered!(uncovered: 1) unless ENV['SKIP_SINGLECOV'] # undefined TRIM for compact helper, tested in trim_test

describe Pagy::Frontend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/extras/countless_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../../test_helper'
require 'pagy/extras/countless'

SingleCov.covered!
SingleCov.covered! unless ENV['SKIP_SINGLECOV']

describe Pagy::Backend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/extras/elasticsearch_rails_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../../test_helper'
require 'pagy/extras/elasticsearch_rails'

SingleCov.covered!
SingleCov.covered! unless ENV['SKIP_SINGLECOV']

describe Pagy::Backend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/extras/foundation_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../../test_helper'
require 'pagy/extras/foundation'

SingleCov.covered!(uncovered: 1) # undefined TRIM for compact helper, tested in trim_test
SingleCov.covered!(uncovered: 1) unless ENV['SKIP_SINGLECOV'] # undefined TRIM for compact helper, tested in trim_test

describe Pagy::Frontend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/extras/i18n_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'i18n'
require 'pagy/extras/i18n'

SingleCov.covered!
SingleCov.covered! unless ENV['SKIP_SINGLECOV']

describe Pagy::Frontend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/extras/items_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'pagy/extras/countless'
require 'pagy/extras/items'

SingleCov.covered!(uncovered: 1)
SingleCov.covered! unless ENV['SKIP_SINGLECOV']

describe Pagy::Backend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/extras/materialize_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../../test_helper'
require 'pagy/extras/materialize'

SingleCov.covered!(uncovered: 1) # undefined TRIM for compact helper, tested in trim_test
SingleCov.covered!(uncovered: 1) unless ENV['SKIP_SINGLECOV'] # undefined TRIM for compact helper, tested in trim_test

describe Pagy::Frontend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/extras/overflow_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../../test_helper'
require 'pagy/extras/overflow'

SingleCov.covered!(uncovered: 1) # the condition for countless
SingleCov.covered! unless ENV['SKIP_SINGLECOV']

describe Pagy do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/extras/plain_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../../test_helper'
require 'pagy/extras/plain'

SingleCov.covered!(uncovered: 1) # undefined TRIM for compact helper, tested in trim_test
SingleCov.covered!(uncovered: 1) unless ENV['SKIP_SINGLECOV'] # undefined TRIM for compact helper, tested in trim_test

describe Pagy::Frontend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/extras/searchkick_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../../test_helper'
require 'pagy/extras/searchkick'

SingleCov.covered!
SingleCov.covered! unless ENV['SKIP_SINGLECOV']

describe Pagy::Backend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/extras/semantic_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../../test_helper'
require 'pagy/extras/semantic'

SingleCov.covered!(uncovered: 1)
SingleCov.covered!(uncovered: 1) unless ENV['SKIP_SINGLECOV']

describe Pagy::Frontend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/extras/support_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'pagy/extras/support'
require 'pagy/countless'

SingleCov.covered!
SingleCov.covered! unless ENV['SKIP_SINGLECOV']

describe Pagy::Frontend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/extras/trim_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# require 'pagy/extras/semantic'
require 'pagy/extras/trim'

SingleCov.covered!
SingleCov.covered! unless ENV['SKIP_SINGLECOV']

describe Pagy::Frontend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy/frontend_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require_relative '../test_helper'

SingleCov.covered!
SingleCov.covered! unless ENV['SKIP_SINGLECOV']

describe Pagy::Frontend do

Expand Down
2 changes: 1 addition & 1 deletion test/pagy_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require_relative 'test_helper'

SingleCov.covered!
SingleCov.covered! unless ENV['SKIP_SINGLECOV']

describe Pagy do

Expand Down
6 changes: 4 additions & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
require 'bundler/setup'

require 'single_cov'
SingleCov.setup :minitest
unless ENV['SKIP_SINGLECOV']
require 'single_cov'
SingleCov.setup(:minitest, branches: false)
end

$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require 'pagy'
Expand Down

0 comments on commit 8ad362d

Please sign in to comment.