Skip to content

Can Rescripter do this? :-) #7

@boncey

Description

@boncey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions