Ticket #151 (closed enhancement: fixed)

Opened 1 year ago

Last modified 2 months ago

add group-option to PHPUnit-Task

Reported by: dirk.thomas@4wdmedia Assigned to: mrook
Priority: major Milestone: 2.3.0
Component: phing-tasks-phpunit Version: 2.3.0RC1
Keywords: phpunit group testNG Cc:

Description

Since PHPUnit 3.2 has support for TestNG-style @grouping of tests it would be nice if the PHPUnit-Task would get a 'group' attribute to define the group which should be executed.

I have appended a patch (which was only tested with PHPUnit 3.2.0-branch to work).

Attachments

phing230_ext-phpunit-group.patch (1.4 kB) - added by dirk.thomas@4wdmedia on 09/10/07 15:54:56.
patch to add group attribute to phpunit-task
tasks_ext_phpunit_GroupStuff-151.patch (3.2 kB) - added by dirk.thomas@4wdmedia.de on 10/25/07 07:49:41.
This patch adds the groups and excludeGroups attributes to the PHPUnitTask. To show a message for PHPUnit < 3.2 a added the minor version only for that special case (to keep the patch simple).
tasks_ext_phpunit_FormatterStuff-152.patch (6.8 kB) - added by dirk.thomas@4wdmedia.de on 10/25/07 07:51:47.
This patch contains the previous and additionally marks skipped tests as failures.

Change History

09/10/07 15:54:56 changed by dirk.thomas@4wdmedia

  • attachment phing230_ext-phpunit-group.patch added.

patch to add group attribute to phpunit-task

10/07/07 10:37:54 changed by dirk.thomas@4wdmedia.de

attribute for excluded groups should be supported as well, since this will be supported by PHPUnit 3.2.0 (http://www.phpunit.de/ticket/225)

10/25/07 07:49:41 changed by dirk.thomas@4wdmedia.de

  • attachment tasks_ext_phpunit_GroupStuff-151.patch added.

This patch adds the groups and excludeGroups attributes to the PHPUnitTask. To show a message for PHPUnit < 3.2 a added the minor version only for that special case (to keep the patch simple).

10/25/07 07:51:47 changed by dirk.thomas@4wdmedia.de

  • attachment tasks_ext_phpunit_FormatterStuff-152.patch added.

This patch contains the previous and additionally marks skipped tests as failures.

10/31/07 08:01:26 changed by mrook

  • status changed from new to closed.
  • resolution set to fixed.

Patch applied in r275, thanks!


Add/Change #151 (add group-option to PHPUnit-Task)




Action