Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
updating jenkins build file to ensure that the schema is loaded befor…
Browse files Browse the repository at this point in the history
…e erd test is run. Updated cucumber settings to create both html and console output in a single run as opposed to the 2 that were in place before. Left cucumber out of the default tests for now, will need to be run separatly on dev machines until all of the tests are addressed. Jenkins file has been updated to run the cucumber test as a separate call.
  • Loading branch information
rdingwell authored and ttaylor249 committed Feb 17, 2017
1 parent 15d7b32 commit 442d192
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ node('ruby') {
}

stage('Run Tests') {
withEnv(['OPENSHIFT_POSTGRESQL_DB_NAME=${tdbname}', 'OPENSHIFT_POSTGRESQL_DB_USERNAME=railstest', 'OPENSHIFT_POSTGRESQL_DB_PASSWORD=railstest', 'OPENSHIFT_POSTGRESQL_DB_HOST=${dbhost}', 'OPENSHIFT_POSTGRESQL_DB_PORT=5432']) {
withEnv(['NO_PROXY=localhost,127.0.0.1', 'OPENSHIFT_POSTGRESQL_DB_NAME=${tdbname}', 'OPENSHIFT_POSTGRESQL_DB_USERNAME=railstest', 'OPENSHIFT_POSTGRESQL_DB_PASSWORD=railstest', 'OPENSHIFT_POSTGRESQL_DB_HOST=${dbhost}', 'OPENSHIFT_POSTGRESQL_DB_PORT=5432']) {
sh 'bundle exec rake'
sh 'bundle exec cucumber'
}
}

Expand Down
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require 'rubocop/rake_task'

Rails.application.load_tasks
RuboCop::RakeTask.new

task default: [:create_reports_dir, :rubocop, 'brakeman:run', 'bundle_audit:run',
'javascript:test', 'javascript:lint', 'erd:test']

Expand Down
4 changes: 2 additions & 2 deletions config/cucumber.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags ~@wip"
html_opts = "--format html --out reports/cucumber.html --strict --tags ~@wip"
html_opts = "--format html --out reports/cucumber.html "
%>
default: <%= std_opts %> features
default: features --format pretty --format html --out reports/cucumber.html --strict --tags ~@wip
html_report: <%= html_opts %> features
wip: --tags @wip:3 --wip features
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip

0 comments on commit 442d192

Please sign in to comment.