Skip to content

Automated Testing

Julia Nguyen edited this page Jul 22, 2018 · 6 revisions

Apart from syncing the codebase, you must periodically update and migrate the database before running the app locally. Please run the following commands before reporting any problems encountered while starting the app:

  1. gem update
  2. bundle install
  3. bin/rails db:migrate RAILS_ENV=development

Debugging With Foreman

In one terminal tab, run bin/start_app which runs bundle exec foreman start client -f Procfile.dev.

In a second terminal tab, run bundle exec rails s.

This will allow you to place debugger in Ruby files and successfully debug.

Testing Accounts

They have been created in db/seeds.rb. Feel free to modify seeds.rb to help to your development needs! You can also test with Google accounts.

Email: test1@example.com
Password: password99
Email: test2@example.com
Password: password99
Email: test3@example.com
Password: password99

Testing Guidelines

We are using Selenium with Chrome for web browser automation. Always write tests for the changes you've made! If you see any missing tests, write them!

Clone this wiki locally