A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/allure-framework/allure-behat-adapter below:

allure-framework/allure-behat: Allure Adapter for Behat framework

This is a Behat extension with Formatter that produces report data for Allure Report test reporting tool.

To install using Composer simply add "allure-framework/allure-behat" to composer.json:

...
"require": {
...
    "allure-framework/allure-behat": "~2.0.0",
...
},
...

To enable this extension in Behat, add it to extensions section of your behat.yml file To use Allure formatter, add allure to your list of formatters in name

  formatters:
    pretty: true
    allure:
      output_path: %paths.base%/build/allure
  extensions:
    Allure\Behat\AllureFormatterExtension:
      severity_key: "severity:"
      ignored_tags: "tag_ignore"
      issue_tag_prefix: "JIRA:"
      test_id_tag_prefix: "BUG:"

Here:

To have attachments in allure report - make sure your behat runs tests with Mink

Allure can handle exception thrown in your Context if that exception is instance of ArtifactExceptionInterface and get screenshots path from it.

Behat has the following test structure:

It has Features described in separate feature files
        Each Feature contains Scenarios
            Each scenario contains Steps

Allure has a bit different hierarchy:

    Each report contains Test Suites
        A Test Suite contains Test Cases
            Every Test Case can contain one or more Steps

On the other hand, Allure also supports grouping Test Cases by Feature, by Story or by Severity level.

Behat Allure formatter does the following mapping:

Behat Scenarios are annotated with it's feature title and description to be grouped into Allure Feature.

Behat also has tags and they are also can be used in Allure reports:

Feel free to open PR with changes but before pls make sure you pass tests ./vendor/behat/behat/bin/behat


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4