Execute test from Gradle task & Allure report
Given that we executed a test, let us see how to execute the test via Gradle task & view the Allure report of it.
Alert!!
We need to replace gradlew file in the project with the file in ekam template in Github.
There is a defect, IntelliJ IDEA which is corrupting the gradlew file’s comments when the project template gets built. More details can be found here. Defect Details
from :
to:
your projects gradlew file under the root folder of the project
Executing test via Gradle task
From the terminal, navigate to the root folder of the project and execute the below Gradle task
./gradlew clean runMobileTests
NOTE:
- All the tests which are tagged as mobile would get executed.
- Please create additional Gradle tasks per your needs
Viewing Allure reports
From the terminal, navigate to the root folder of the project and execute the below Gradle task
./gradlew allureServe
This would open up allure report like below:
Please refer Allure documentation to understand details on reporting structure.