Week 3 - Testing, CI and CD
Week 3
Reading
In week 3, we’ll work on Rails Testing. Please read through the Rails Testing Guide and have a look at the Capybara DSL which we will use to write end-to-end feature tests.
Also, we’ll set up continuous integration and continuous deployment using the services travis and heroku respectively.
Background
Testing, Setting up a Deployment Workflow, and some Ruby
Working on your project
again, see the example project for clarification on what to do.
- Create at least one happy-path feature test for each person on your team. Use Capybara.
- Test cleanup: delete unnecessary test
- Create test data for the tests using fixtures.
- Create a model test.
- Create seed data for playing around in development mode, and also some if you need/want seed data in production.
- Set up automated integration tests on travis ci for your project. Include a “build passing” button in your readme.
- Set up an Automated Deployment to Heroku for your project.
- For the bored: set up a build matrix testing both against postgres and sqlite on travis
- Automatically Deploy every successful Build from Travis.
Don’t forget to tag your sources with week-3 after completing theses steps.