File tree 1 file changed +14
-3
lines changed
features/step_definitions
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 30
30
)
31
31
32
32
When (
33
- / ^ I r u n c u c u m b e r - j s w i t h a r g u m e n t s ` ( | . + ) ` a n d e n v ` ( | . + ) ` $ / ,
33
+ ' I run cucumber-js with arguments `{} ` and env `{}`' ,
34
34
{ timeout : 10000 } ,
35
35
async function ( this : World , args : string , envString : string ) {
36
36
const renderedArgs = Mustache . render ( valueOrDefault ( args , '' ) , this )
41
41
)
42
42
43
43
When (
44
- / ^ I r u n c u c u m b e r - j s w i t h e n v ` ( | . + ) ` $ / ,
44
+ ' I run cucumber-js with env `{}`' ,
45
45
{ timeout : 10000 } ,
46
46
async function ( this : World , envString : string ) {
47
47
const env = this . parseEnvString ( envString )
50
50
)
51
51
52
52
When (
53
- / ^ I r u n c u c u m b e r - j s w i t h a l l f o r m a t t e r s (?: a n d ` ( | .+ ) ` ) ? $ / ,
53
+ 'I run cucumber-js with all formatters' ,
54
+ { timeout : 10000 } ,
55
+ async function ( this : World ) {
56
+ const args = '--format html:html.out --format json:json.out'
57
+ const renderedArgs = Mustache . render ( args , this )
58
+ const stringArgs = stringArgv ( renderedArgs )
59
+ return await this . run ( this . localExecutablePath , stringArgs )
60
+ }
61
+ )
62
+
63
+ When (
64
+ 'I run cucumber-js with all formatters and `{}`' ,
54
65
{ timeout : 10000 } ,
55
66
async function ( this : World , args : string ) {
56
67
if ( doesNotHaveValue ( args ) ) {
You can’t perform that action at this time.
0 commit comments