In PHPUnit you can create test method as starting with 'test' or by adding @test annotation in PHPDoc block (see http://www.phpunit.de/manual/current/en/writing-tests-for-phpunit.html). I find the latter very convenient, but SimpleTest lacks support for @test annotation.

I thought it would be great if it's possible to write tests like:

/**
 * Just a test.
 * @test
 */
public function justTest() {
  // test something
}

Here is a small patch for D7 SimpleTest that adds support for @test annotations.
I'll backport patch to 6.x-2.x if feature is confirmed.

P.S. Sorry if posted in wrong place.

CommentFileSizeAuthor
test-annotation-for-simpletest.patch1.59 KBp0deje