gradle - --name parameter for cucumber in Android -


i want build.gradle handle paramters cucumber tests.

it goes :

switch (project.getproperties().get("testtype")) {             case "validate":                 arguments = [features: "features/remote",                              glue: "com.myproject.feature.remote",                              tags: "@newandroid--~@skip--~@skipandroid"]                 break;             case "local":             case "generic":         } 

this way, can run tests command :

gradlew cat -ptesttype="validate" 

which gets cucumber arguments filled in, in runner class :

public void oncreate(bundle bundle) {     super.oncreate(bundle);     this.cucumberinstrumentationcore.create(bundle);     start(); } 

this works great, i'm facing problem "name" parameter (to able run specific scenario).

if add option in runner way :

bundle.putstring("name", "^feature$"); 

it work , run scenario has string "feature" in it, want.

however, in build.gradle, if add :

arguments = [features: "features/remote",                                  glue: "com.myproject.feature.remote",                                  name: '^feature$'] 

it not work (when again, other parameters such feature , glues, work)

for reason, i'm not seeing logs in android monitor, cause of problem is.

i'm guessing has regex ?

any idea ?


Comments