Search code examples
calabashcalabash-ioscalabash-androidallure

How to generate allure report with calabash?


I'm using calabash for automate mobile app. Is it possible to integrate allure report in calabash framework?


Solution

  • To create report for calabash test:

    Install allure for cucumber:

    • gem install allure-cucumber

    Then add following into features/support/env.rb file

    require 'allure-cucumber'
    AllureCucumber.configure do |c|
       c.output_dir = "reports"
    end
    

    Above i have given "reports" as folder name, so the report of test will reside here.

    Now run the calabash test:

    • calabash-android run 'your.apk' --format AllureCucumber::Formatter

    This much will create an XML file as result in "reports" folder.

    You can do more customization on test go through here