allure-framework / allure-php-api
Allure PHP commons
Installs: 10 065 615
Dependents: 6
Suggesters: 0
Security: 0
Stars: 33
Watchers: 12
Forks: 28
Open Issues: 5
Requires
- php: >=7.1.3
- doctrine/annotations: 1.*
- jms/serializer: ^1 | ^2 | ^3
- ramsey/uuid: ^3 | ^4
- symfony/mime: ^4.3 | ^5
Requires (Dev)
- phpunit/phpunit: ^7 | ^8 | ^9
- dev-master
- 1.5.0
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-dependabot/github_actions/shivammathur/setup-php-2.25.1
- dev-dependabot/github_actions/actions/checkout-3.5.2
- dev-dependabot/github_actions/toolmantim/release-drafter-5.23.0
- dev-dependabot/github_actions/zwaldowski/match-label-action-4
- dev-fix-mimetype
This package is auto-updated.
Last update: 2024-10-08 19:22:11 UTC
README
This project is in Maintenance mode. The new version of PHP API is available https://github.com/allure-framework/allure-php-commons2 .
This repository contains PHP API for Allure framework. 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", "allure-framework/allure-php-api": "~1.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.