File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ abstract class TestsSplitter extends BaseTask
26
26
protected $ projectRoot = '. ' ;
27
27
protected $ testsFrom = 'tests ' ;
28
28
protected $ saveTo = 'tests/_data/paracept_ ' ;
29
+ protected $ excludePath = 'vendor ' ;
29
30
30
31
public function __construct ($ groups )
31
32
{
@@ -52,6 +53,13 @@ public function groupsTo($pattern)
52
53
53
54
return $ this ;
54
55
}
56
+
57
+ public function excludePath ($ path )
58
+ {
59
+ $ this ->excludePath = $ path ;
60
+
61
+ return $ this ;
62
+ }
55
63
}
56
64
57
65
/**
@@ -123,7 +131,8 @@ public function run()
123
131
->name ('*Test.php ' )
124
132
->name ('*.feature ' )
125
133
->path ($ this ->testsFrom )
126
- ->in ($ this ->projectRoot ? $ this ->projectRoot : getcwd ());
134
+ ->in ($ this ->projectRoot ? $ this ->projectRoot : getcwd ())
135
+ ->exclude ($ this ->excludePath );
127
136
128
137
$ i = 0 ;
129
138
$ groups = [];
You can’t perform that action at this time.
0 commit comments