Cucumber reports are not generated
JairAviles opened this issue · 7 comments
After successfully running the tests through the command line using either ./gradlew connectedAndroidTest
or ./gradlew connectedCheck
it is showing on the Android Monitor the print
Retrieving Cucumber test report to /xx_myProjectPath_xx/CleanGUITestArchitecture/app/build
However, when I review on the project view the cucumber-reports folder it is empty. I am able to creat the report with spoon abd the default with androidTests, though not the case with cucumber-reports.
It seems there is a pending bug to fix since few years ago. What is more, I came across on the internet with other questions in StackOverflow and Google groups and yet, there is no a solution for this situation.
Another thing you can try is to align the report paths to write to and read from in your phone to a path that matches your project and see if the files are writen in the phone to that folder after running, modify:
https://github.com/sebaslogen/CleanGUITestArchitecture/blob/master/app/src/androidTest/java/com/neoranga55/cleanguitestarchitecture/test/CucumberTestCase.java#L18
https://github.com/sebaslogen/CleanGUITestArchitecture/blob/master/app/build.gradle#L43
Hey @sebaslogen sorry for the delay in replying. I did not understand very well your suggestion. You mean to change the format path on CucumberTestCase class and must be same as defined on build.gradle?
Yes and check if any file is created on the phone in that folder.
I changed the path folder in CucumberTestCase class, from /data/data/com.neoranga55.cleanguitestarchitecture/cucumber-reports/ to
/mnt/sdcard/cucumber-reports/
However, when running the instrumented tests. Cucumber jvm is not recognizing
On the same way, I also tried changing the path from gradle file. When finishing syn an running it still not creating the cucumber reports and do not create any file on my /data... path on the mobile,
@JairAviles I just submitted a change to align both reporting folders in build.gradle and in CucumberTestCase to /mnt/sdcard/cucumber-reports/ - I executed it on an emulator (Nexus 4 API 21) and it works well. I suggest trying with the latest code and an emulator.
On the other hand, when I tried with the /data/data... I see the folder is created and filled while the tests are being executed but it's deleted just as the test finishes and probably before the gradle task that retrieves the report is executed.
HI @JairAviles, I am currently facing this issue on configuring my application.Can you please share the solution how you resolved taking the report from the Phone to your computer. I am using Android 6.0 emulator to run my tests.Do I need to add anything for device's API > 21?