mardi 3 avril 2018

collect stats on method usage in non-rails ruby project

I have a project where we keep our acceptance test code. It has about 1100 methods that I use for dealing with various aspects of the UI the project is quite old so I suspect that some methods are stale and never get used. Tests are run as Rspec tests. I would like to somehow create statistics method usage to delete stale ones and create a list of top 20 or 30 which are in active use. Any ideas how I can collect that data?

Aucun commentaire:

Enregistrer un commentaire