Skip to content

Instantly share code, notes, and snippets.

@joeyates
Last active January 23, 2017 09:44
Show Gist options
  • Save joeyates/34dbe6e9c0e5ba3e515c to your computer and use it in GitHub Desktop.
Save joeyates/34dbe6e9c0e5ba3e515c to your computer and use it in GitHub Desktop.
Running MRI Ruby Tests
# While modifying Ruby source, it's handy to only run the tests on the file you're modifying.
# See:
# * doc/contributing.rdoc in Ruby source,
# * https://bugs.ruby-lang.org/projects/ruby/wiki/DeveloperHowto
# Run core tests:
make test
# Run all tests:
make test-all
# Specify a directory:
make test-all TESTS=test/rss
# Specify a single file:
make test-all TESTS=test/rss/test_atom.rb
# Filter by test name:
make test-all TESTOPTS='-n test_feed'
# Filter by file and name (faster than above):
make test-all TESTS=test/rss/test_atom.rb TESTOPTS='-n test_feed'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment