Joined May 2011
·
Posted to
Creating a test rake task with Minitest
over 1 year
ago
Thanks for this, I did want to note that typically the folder for tests is simply test
without the s
. Also from minitest's readme, they prefix files with test_
instead of postfixing them. So if you're following all conventions it ends up being
require "rake/testtask"
Rake::TestTask.new do |t|
t.test_files = FileList['test/**/test_*.rb']
end
desc "Run tests"
task default: :test
Thanks for the write up, just wanted to save someone else a bit of time.
Achievements
223 Karma
996 Total ProTip Views
24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2014
Raven
Have at least one original repo where some form of shell script is the dominant language
Kilo of Lemmings
Establish a space in the open source hall of fame by getting at least 1000 devs to watch a project
24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2013
Philanthropist
Truly improve developer quality of life by sharing at least 50 individual open source projects
Forked 100
Have a seriously badass project that's been forked at least 100 times
24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2012
Forked 50
Have a project with a thriving community of users that's been forked at least 50 times
Octopussy
Have a repo followed by a member of the GitHub team
Forked 20
Have an established project that's been forked at least 20 times
Altruist
Increase developer well-being by sharing at least 20 open source projects
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Lemmings 100
Write something great enough to have at least 100 watchers of the project
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
Cub
Have at least one original jQuery or Prototype open source repo
Ashcat
Make Ruby on Rails better for everyone by getting a commit accepted
From Mike on twitter:
https://twitter.com/mperham/status/895377361922777088