Daniel's collected open source and open data musings as a web developer, project manager and architect in Adelaide.
What about simply running:$ phpunit --filter method_name .
That will pick up test names which match.If you have a test which uses the affected code but has a different purpose, ack-grep should be able to detect it and run the whole suite.Likely with some test runners (ie: rspec), it'll probably even take ack-greps file+line number format and execute only that block...
ie:function testFoo() { bar()}$ phpunit --filter bar $ ack-grep "bar\(" -l | xargs phpunit
Post a Comment
3 comments:
What about simply running:
$ phpunit --filter method_name .
That will pick up test names which match.
If you have a test which uses the affected code but has a different purpose, ack-grep should be able to detect it and run the whole suite.
Likely with some test runners (ie: rspec), it'll probably even take ack-greps file+line number format and execute only that block...
ie:
function testFoo() {
bar()
}
$ phpunit --filter bar
$ ack-grep "bar\(" -l | xargs phpunit
Post a Comment