From: Jim Weirich Date: 2006-03-10T09:49:24+09:00 Subject: Re: Test Harness? Daniel Nugent wrote: > Is there a way to pass Rake tasks arguments? > > I'd like to do something where I break my unit tests up into test > suites by just dropping them into folders and then being able to > invoke a Rake task like rake suite "sweet" or rake suite > "sweet/saccharine", if I wanted a test suite inside of a test suite. > > Or, alternatively, I'd like to be able to invoke test cases named > "sucrose" by rake test_case "sucrose" > > Disclaimer: I've read Rake tutorials several times in the past but > have yet to arse myself to start using it (which I should, because I > think I'm starting to exert more effor than is worthwhile keeping > tests organzied without rake), so I might've forgotten the part where > it says you can do exactly what I'm asking. This page: http://rake.rubyforge.org/classes/Rake/TestTask.html pretty well describes how the built-in test task takes arguments. -- -- Jim Weirich -- Posted via http://www.ruby-forum.com/.