Skip to main content

Allure Reports

Allure Framework is a versatile, lightweight, multi-language test reporting tool designed to provide a concise representation of tested functionalities in a visually appealing web report format. It facilitates easy extraction of valuable information for all stakeholders involved in the development process.

Integration with HyperExecute

If your testing framework already generates Allure reports, you can seamlessly integrate it with HyperExecute. This integration enables the generation of a consolidated Allure report on HyperExecute for each job, accessible through the report section of the HyperExecute dashboard.

Allure Report Configuration

Step 1: To configure the Allure reporter in the WDIO framework, update your wdio.conf.js file as follows:

export const config = {
reporters: [['allure', {
outputDir: 'allure-results',
disableWebdriverStepsReporting: true,
disableWebdriverScreenshotsReporting: true,
}]],
}
  • The outputDir parameter specifies the directory where Allure reports will be stored. In this example, it is set to 'reports/allure-results'. This parent folder is essential for HyperExecute integration, as detailed later.

  • The disableWebdriverStepsReporting and disableWebdriverScreenshotsReporting parameters allow customization of reporting options.

Step 2: Add the following report parameters in your HyperExecute YAML file

report: true
partialReports:
location: reports
type: html
frameworkName: allure

NOTE: The above example is only for the WDIO framework and the baseline concept remains the same across all the frameworks that the allure-results should be saved in a parent folder and that location of the parent folder is to be provided in the location parameters of reports in the HyperExecute YAML file.

info

To enrich Allure reports with more specific details, we can use custom plugins. These plugins require configurations to function properly.

To achieve this, you can use configPath flag within HyperExecute YAML. This specifies the location of the configuration file containing the custom plugin settings, allowing Allure to generate reports with the desired level of detail and this will be passed as allure --config <CONFIG_PATH>

report: true
partialReports:
location: reports
configPath: allure-config.yml
type: html
frameworkName: allure
Image