- Run the Javascript mentioned here and put it somewhere.
- Massage to output into the regular expression in Find-step below.
- Choose replace in files
- Set Find to
(public void (some_test_1|some_test_2))
- Set Replace to
[TestCategory("SomeCategory")]\n\t\t$1
- Type git diff to inspect the changes