Skip to content

testspace-samples/ruby.minitest

 
 

Repository files navigation

Testspace


Ruby/Minitest sample for demonstrating Testspace

This is the sample application for the Ruby on Rails Tutorial: Learn Web Development with Rails by Michael Hartl. It is being used to demonstrate publishing test content to Testspace. We have made a few minor modifications to original project for publishing.

  • 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.minitest
  • Refer to our Help for more information

Using Multiple Online CI Services:

Build Build Status CircleCI


Test Content published to www.testspace.com.

Space Health Space Metric Space Metric


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 || true
bundle exec brakeman -o tmp/brakeman.json
bundle exec brakeman_translate_checkstyle_format translate --file="tmp/brakeman.json" > tmp/brakeman_checkstyle.xml
bundle exec scss-lint --no-color --format=Stats --format=Default --out=tmp/scss-lint.txt  app/assets/stylesheets/ || true

Running Tests with Code Coverage:

export CI_REPORTS=$PWD/test/reports
bundle exec rake minitest test

Push Content using Testspace client. Note that ".testspace.txt" contains list of items to push.

testspace @.testspace.txt

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 68.9%
  • HTML 20.8%
  • SCSS 5.9%
  • CoffeeScript 1.7%
  • JavaScript 1.1%
  • CSS 0.8%
  • Other 0.8%