You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this command need run all tests with `Codeception\Task\TimeReporter` for collect execution time. If you want just split tests between group (and not execute its) you can use SplitTestsByGroups.
81
-
**Please be aware**: This task will not consider any 'depends' annotation!
80
+
this command need run all tests with `Codeception\Task\TimeReporter` for collect execution time. If you want just split tests between group (and not execute its) you can use SplitTestsByGroups. **Please be aware**: This task will not consider any 'depends' annotation!
81
+
82
+
### MergeXmlReports
83
+
84
+
Mergex several XML reports:
85
+
86
+
```php
87
+
$this->taskMergeXmlReports()
88
+
->from('tests/result/result1.xml')
89
+
->from('tests/result/result2.xml')
90
+
->into('tests/result/merged.xml')
91
+
->run();
92
+
```
93
+
94
+
95
+
### MergeHtmlReports
96
+
97
+
Mergex several HTML reports:
98
+
99
+
```php
100
+
$this->taskMergeHtmlReports()
101
+
->from('tests/result/result1.html')
102
+
->from('tests/result/result2.html')
103
+
->into('tests/result/merged.html')
104
+
->run();
105
+
```
82
106
83
-
### Filter
107
+
108
+
## Filters
84
109
85
110
You can use a custom filter to select the necessary tests.
86
111
87
112
Two filters already included: DefaultFilter, GroupFilter
88
113
89
-
**DefaultFilter** is used by default and is every time the first filter which will be used.
90
-
**GroupFilter**_Can only be used by taskSplitTestsByGroups_, allows you to filter the loaded tests by the given groups. You have the possibility to declare groups which you want to include or exclude. If you declare foo and bar as included, only tests with this both group annotations will be matched. The same thing is happend when you add excluded groups. If you combine the included and excluded group the only tests which have exactly the correct group annotations for the included items and none of the excluded items.
114
+
***DefaultFilter** is enabled by default, takes all tests.
115
+
***GroupFilter**_(Can only be used by taskSplitTestsByGroups)_, allows you to filter the loaded tests by the given groups. You have the possibility to declare groups which you want to include or exclude. If you declare foo and bar as included, only tests with this both group annotations will be matched. The same thing is happend when you add excluded groups. If you combine the included and excluded group the only tests which have exactly the correct group annotations for the included items and none of the excluded items.
116
+
117
+
You can add as many filters as you want. The FIFO (First In - First Out) principle applies. The next filter will only get the result of the filter before.
91
118
92
-
You can add as many filters as you want. The FIFO principle applies. The next filter will only get the result of the filter before.
93
-
####USAGE:
119
+
### Usage
94
120
95
121
For example, you want all tests which have in the doc comment the groups 'foo' AND 'bar' but not 'baz' then you can do it like this:
96
122
@@ -125,27 +151,5 @@ class CustomFilter extends DefaultFilter {
125
151
126
152
The TestFileSplitterTask.php pushes an array of SplFileInfo Objects to the filter.
127
153
The TestsSplitterTask.php pushes an array of SelfDescribing Objects to the filter.
0 commit comments