Skip to content

wallarm/fast-example-api-circleci-rails-integration

Repository files navigation

README

Example of integration Wallarm FAST with the rails app using rspec, capybara and selenium.

How to run specs localy

Install docker and docker-compose

Create a new Test Run and get WALLARM_API_TOKEN https://my.wallarm.com/testing/testruns

export WALLARM_API_TOKEN=<YOUR WALLARM NODE TOKEN>

sudo -E docker-compose build
sudo -E docker-compose up -d fast selenium
sudo -E docker-compose run --use-aliases app-test bundle exec rspec spec/features/posts_spec.rb
sudo -E docker-compose down

Intergation with Circle CI

Create a project and pass following ENV variables:

WALLARM_API_TOKEN <YOUR WALLARM NODE TOKEN>

Example builds: https://circleci.com/gh/wallarm/fast-examples-rails/