ezsystems / allure-php-api
PHP API for Allure adapter
v3.3.0
2022-01-04 10:46 UTC
Requires
- php: ^7.3 || ^8.0
- jms/serializer: ^3.0
- ramsey/uuid: ^3.0.0
- symfony/http-foundation: ^5.0
- symfony/mime: ^5.0
Requires (Dev)
- ezsystems/ezplatform-code-style: ^0.1.0
- friendsofphp/php-cs-fixer: ^2.16.0
- ibexa/ci-scripts: ^0.1@dev
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-11-28 15:05:24 UTC
README
This repository contains PHP API for Allure framework with eZ Systems modifications for newer JMS Serializer. The main idea is to reuse this API when creating adapters for different test frameworks.
Getting started
In order to use this API you simply need to add the following to composer.json:
{ "require": { "php": "^5.4.0 || ^7.1.3", "ezsystems/allure-php-api": "~3.0.0" } }
Basic usage idiom is to fire an event like the following:
Allure::lifecycle()->fire(new TestCaseFinishedEvent());
Events
The following events are available right now:
- AddAttachmentEvent
- AddParameterEvent
- ClearStepStorageEvent
- ClearTestCaseStorageEvent
- RemoveAttachmentsEvent
- StepCanceledEvent
- StepEvent
- StepFailedEvent
- StepFinishedEvent
- StepStartedEvent
- TestCaseBrokenEvent
- TestCaseCanceledEvent
- TestCaseEvent
- TestCaseFailedEvent
- TestCaseFinishedEvent
- TestCasePendingEvent
- TestCaseStartedEvent
- TestCaseStatusChangedEvent
- TestSuiteEvent
- TestSuiteFinishedEvent
- TestSuiteStartedEvent
Usage examples
See allure-phpunit project.