-
Notifications
You must be signed in to change notification settings - Fork 3
Writing Tests
Peeyush Goyal edited this page Sep 2, 2021
·
6 revisions
Testing all worst case possibilities is good before we are staging to Production.
We have used rspec-rails
, factory_bot_rails
and faker
to setup our basic tests.
- If you are using WSL then use WSL 1, network connection is not possible in WSL 2
- For running integration tests use these commands:
- sudo service postgresql start
- rails db:reset RAILS_ENV=test
- bundle exec rspec file path
- We are using Capybara for writing tests, Capybara Cheatsheet https://gist.github.com/zhengjia/428105
📌 Arike