-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Implement feature test suite for bootstrap
During the period of migrating our views to bootstrap, we need to run the feature tests twice. One time with bootstrap disabled and one time enabled. This can be triggered by setting the BOOTSTRAP environment variable and excluding the spec/bootstrap/ directory from rspec (see .circleci/config.yml). If a test does not run with reasonable effort with bootstrap enabled, the test can be skipped by adding skip_if_bootstrap to the first line of the spec and we can implementing a new test in spec/bootstrap/ directory.
- Loading branch information
Showing
6 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module FeaturesBootstrap | ||
def skip_if_bootstrap | ||
msg = 'The feature tests are executed with BOOTSTRAP enabled, therefore we skip this test.' | ||
skip(msg) if ENV['BOOTSTRAP'].present? | ||
end | ||
end | ||
|
||
RSpec.configure do |c| | ||
c.include FeaturesBootstrap, type: :feature | ||
end |