Skip to content

Commit

Permalink
Align report retrieval folder working for emulators
Browse files Browse the repository at this point in the history
  • Loading branch information
sebaslogen committed Jun 14, 2017
1 parent 6d1abf0 commit a9da908
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
// The report path in this task depends on the path used in CucumberTestCase.java under @CucumberOptions
// The report path for emulator and real device differ depending on read permissions
// and SD-card presence respectively
gradle.taskGraph.afterTask { task, TaskState state ->
gradle.taskGraph.afterTask { task, state ->
if ((task == connectedAndroidTest) || (task == connectedCheck)) {
def reportDir = new File(project.buildDir, "cucumber-reports")
if (!reportDir.exists()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
*/
@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:/data/data/com.neoranga55.cleanguitestarchitecture/cucumber-reports/cucumber-html-report",
"json:/data/data/com.neoranga55.cleanguitestarchitecture/cucumber-reports/cucumber.json",
"junit:/data/data/com.neoranga55.cleanguitestarchitecture/cucumber-reports/cucumber.xml"
format = {"pretty", // Cucumber report formats and location to store them in phone/emulator
"html:/mnt/sdcard/cucumber-reports/cucumber-html-report",
"json:/mnt/sdcard/cucumber-reports/cucumber.json",
"junit:/mnt/sdcard/cucumber-reports/cucumber.xml"
// Note: if you don't have write access to /mnt/sdcard/ on the phone use instead
// the following path here and in the build.gradle: /data/data/com.neoranga55.cleanguitestarchitecture/cucumber-reports/
},
tags={"~@manual", "@login-scenarios"}
)
Expand Down

0 comments on commit a9da908

Please sign in to comment.