activelylazy/Rescripter — Issue #7: Can Rescripter do this? :-)
Author: boncey
Created: 2012-01-30 13:19:23+00:00
State: open

Hi, I'm about to have another play with Rescripter.

I'm working on a legacy code base where the unit tests don't use annotations.
I want to write a script to update them to use annotations.

This is my rough spec.

* Find all classes that extends TestCase

* For each method that starts with "test"
* Add annotation and import
* For method called "startup" and/or "teardown"
* Add annotation and import
* Remove @Override annotation if present
* Remove " extends TestCase" and import

I think Rescripter might be missing some of the functionality to do all that.
Specifically, finding all methods that start with "test" and a clean way of removing the "extends TestCase" text.
I've forked it to see if I can add that.

Just want to know if what I want to do sounds achievable and ask for any alternative ways of doing it with existing functionality.

Finally, if I get it all working I'll add my script to the examples page.