This repository is sample code of autometed system test with Ruby and RSpec.
production
directory include typical web application by Ruby on Rails and system_tests
directory include automated test suites by RSpec, Turnip, and Capybara. But the codes under system_tests
directory doesn't depend on architecture of production. Thease system test suites describe and check behaviors of production that build any programming language except Ruby or any framework except Ruby on Rails.
-
Clone this repository:
git clone [email protected]:a-suenami/automated_system_test_sample.git
-
Set up the sample production and start the web server:
cd automated_system_test_sample bundle install bundle exec rake db:create db:migrate bundle exec rails server
-
Set up the system test suites and run tests:
cd ../system_tests bundle install bundle exec rspec
In my opinion system test suites have following requirements:
- These are valuable for documents.
- These can be described by non-programmmers with natural language ( not programming language ).
- These doesn't depend on the architecture of product. These depend on only HTTP and HTTPS protocol.
I aim at the above.