Ruby/RSpec sample for demonstrating Testspace based on the everydayrails's repo
Sample demonstrates techniques for using Testspace with Ruby code and the rspec
test framework together with simplecov
code coverage gem and selenium-webdriver
gem.
- Using a Testspace Project that is
connected
with this GitHub Repo - Using 3 Online CI services for demonstration purposes only
- Can review the Results at testspace-samples:ruby.rspec
- Refer to our Help for more information
Using Multiple Online CI Services:
Publishing Test Content using www.testspace.com.
Download and configure the Testspace client
mkdir -p $HOME/bin curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | tar -zxvf- -C $HOME/bin testspace config url samples.testspace.com
Running Static Analysis:
bundle install bundle exec rubocop --format emacs --out tmp/rubocop.txt bundle exec brakeman -o tmp/brakeman.json bundle exec brakeman_translate_checkstyle_format translate --file="tmp/brakeman.json" > tmp/brakeman_checkstyle.xml
Running Tests with Code Coverage:
export CI_REPORTS=$PWD/spec/reports COVERAGE=true xvfb-run --server-args="-screen 0 1024x768x24" bundle exec rake ci:setup:rspec spec
Push Content using Testspace client. Note that ".testspace.txt" contains list of items to push.
testspace @.testspace.txt