Finding Unused Code in Rails
Using rcov along with your tests is great - you can quickly identify untested code. But what if you want to find unused code? Just because you have a test written for a method doesn't mean you're using it in your application.
rcov script/server
Start WEBrick through rcov, and click through your application. When you're done you'll have a coverage report identifying any unused code. This is a great way to make sure you're not calling that deprecated method before you actually delete it.
rcov script/server
Start WEBrick through rcov, and click through your application. When you're done you'll have a coverage report identifying any unused code. This is a great way to make sure you're not calling that deprecated method before you actually delete it.
Posted on 2006-11-21 | permalink
We're assembling a team of incredible developers in Chicago.
- the team is talented
- our practices are collaborative
- we work on challenging problems
- 10% time open dev days
- developers use and love our product
- we're polyglot (ruby, python, node, & more)
- high salary, stock options, 401k match, ample vacation