ruby-plsql-spec
ruby-plsql-spec copied to clipboard
How to setup ruby-plsql-spec on Jenkins CI?
It would be great to include a guide for setup of Jenkins job that can be executed to run your tests. I have described some of that already on my blog post some time ago, while comparing with utPLSQL. This could however be a good contribution to the documentation of the project.
I've setup Hudson jobs that run ruby-plsq-spec. I use the following main functions/plugins. The builds are parameterized with the database as a parameter (DB).
- Execute Shell Function Example TOP=XXMAP RSPEC_FILE=testmap11_eft_debit_spec.rb ../../run_plsql_spec.sh $TOP $RSPEC_FILE "$JOB_NAME" "$BUILD_TAG" $DB
- Publish HTML reports
a. Report 1
- HTML directory to archive: rspec
- Index page(s): test-results.html
- Report Title: RSpec Results b. Report 2
- HTML directory to archive: coverage
- Index page(s): index.html
- Report Title: Code Coverage
- Hudson Text Finder a. Hudson Text Finder: rspec/test-results.html b. Regular expression: 0 failures c. Succeed if found: checked d. Unstable if found: unchecked