From: Daniel Berger Date: 2009-02-19T00:15:00+09:00 Subject: Rake post test task Hi, How do I run a task after the fact with Rake? For example, I have a test task for a C extension. It looks something like this: Rake::TestTask.new('test') do |test| task :test => [:build] test.libs << 'ext' test.warning = true test.verbose = true end That works fine, but I'd like it to run the "clean" task after it's finished. And no, simply sticking "task :test => [:clean]" at the bottom of the test task doesn't work. Regards, Dan