I've searched Google, etc for a way to prefix test methods with 'should' instead of 'test' and have not found any way to accomplish this, so short of poking through the SimpleTest code...I figured I'd ask here as I thought this would be a popular topic but apparently not...according to Google anyways.
SimpleTest annotations
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
SimpleTest annotations
Is this possible in SimpleTest? How?
I've searched Google, etc for a way to prefix test methods with 'should' instead of 'test' and have not found any way to accomplish this, so short of poking through the SimpleTest code...I figured I'd ask here as I thought this would be a popular topic but apparently not...according to Google anyways.
I've searched Google, etc for a way to prefix test methods with 'should' instead of 'test' and have not found any way to accomplish this, so short of poking through the SimpleTest code...I figured I'd ask here as I thought this would be a popular topic but apparently not...according to Google anyways.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
I had to Google annotations because you confused me with that last sentance...Chris Corbyn wrote:I'm curious if this is possible too. JUnit allows the use of Annotations to do things like this. In PHP it would be a little less readable however since there are no annotations although Reflection does allow Doc comments to be read in PHP5.
All I am interested in doing (for now) is having 'should' prefix instead of 'test' which I figured would be a simple call to the SimpleTest class...but I can't find anything...so short of going into the source and finding where the unit tests are invoked and replacing 'test' with 'should' - I'm lost...
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
I don't believe it applies yet - code coverage for PHPUnit is in any case run primarily by the xdebug extension. Adding support for that to SimpleTest would be a relatively simple task I'd think. Chance are SimpleTest will have Mutation Support in about a month also - something I'm working on in bits and pieces.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
And by mutation support, you mean???Maugrim_The_Reaper wrote:I don't believe it applies yet - code coverage for PHPUnit is in any case run primarily by the xdebug extension. Adding support for that to SimpleTest would be a relatively simple task I'd think. Chance are SimpleTest will have Mutation Support in about a month also - something I'm working on in bits and pieces.