Skip to content

Instantly share code, notes, and snippets.

@bigsnarfdude
Last active May 22, 2025 21:37
Show Gist options
  • Save bigsnarfdude/181e59cef98c0b076b83599463f564f2 to your computer and use it in GitHub Desktop.
Save bigsnarfdude/181e59cef98c0b076b83599463f564f2 to your computer and use it in GitHub Desktop.
using rspec
# All model tests
bundle exec rspec spec/models/
# All controller tests
bundle exec rspec spec/controllers/
# All request tests
bundle exec rspec spec/requests/
# All feature tests
bundle exec rspec spec/features/
# Run all tests
bundle exec rspec
bundle exec rspec spec/features/ > /app/test_results.txt 2>&1
docker cp workshops:/app/controller_output ./controller_output.txt
grep -i "error\|exception\|undefined" controller_output.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment