package com.neoranga55.cleanguitestarchitecture.test;

import cucumber.api.CucumberOptions;

/**
 * This class configures the Cucumber test framework and Java glue code
 *
 * Flavors' support: When you have multiple flavors the best configuration is to follow this steps:
 * 1- Create a copy of this file on each flavor's specific test package and delete the original file
 *      i.e. androidTestFlavor/java/com/neoranga55/cleanguitestarchitecture/test/CucumberTestCase.java
 * 2- Modify the original report path to include the flavor /mnt/sdcard/cucumber-reports/FLAVOR/cucumber-html-report
 * 3- Tag your scenarios in the feature files with new specific tags for each flavor and include them in the flavor's version of this file
 *      i.e. Add tag @flavor-one to a test scenario and modify the flavor's CucumberTestCase.java with tags={"~@manual", "@flavor-one"}
 */
@CucumberOptions(features = "features", // Test scenarios
        glue = {"com.neoranga55.cleanguitestarchitecture.cucumber.steps"}, // Steps definitions
        format = {"pretty", // Cucumber report formats and location to store them in phone
                "html:/mnt/sdcard/cucumber-reports/cucumber-html-report",
                "json:/mnt/sdcard/cucumber-reports/cucumber.json",
                "junit:/mnt/sdcard/cucumber-reports/cucumber.xml"
        },
        tags={"~@manual", "@login-scenarios"}
)
public class CucumberTestCase {
}

@@ -1133,26 +1133,65 @@
  %22html:/
-mnt/sdcard
+data/data/com.neoranga55.cleanguitestarchitecture
 /cucumbe
@@ -1200,25 +1200,16 @@
 reports/
-cucumber-
 html-rep
@@ -1237,26 +1237,65 @@
  %22json:/
-mnt/sdcard
+data/data/com.neoranga55.cleanguitestarchitecture
 /cucumbe
@@ -1344,26 +1344,65 @@
 %22junit:/
-mnt/sdcard
+data/data/com.neoranga55.cleanguitestarchitecture
 /cucumbe

Update CucumberOptions format to work with emulator