Download the PHP package allure-framework/allure-codeception without Composer
On this page you can find all versions of the php package allure-framework/allure-codeception. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download allure-framework/allure-codeception
More information about allure-framework/allure-codeception
Files in allure-framework/allure-codeception
Package allure-codeception
Short Description Allure Codeception integration
License Apache-2.0
Homepage https://allurereport.org/
Informations about the package allure-codeception
Allure Codeception Adapter
This is an official Codeception adapter for Allure Framework.
What is this for?
The main purpose of this adapter is to accumulate information about your tests and write it out to a set of XML files: one for each test class. This adapter only generates XML files containing information about tests. See wiki section on how to generate report.
Example project
Example project is located at: https://github.com/allure-examples/allure-codeception-example
Installation and Usage
In order to use this adapter you need to add a new dependency to your composer.json file:
To enable this adapter in Codeception tests simply put it in "enabled" extensions section of codeception.yml:
outputDirectory
is used to store Allure results and will be calculated
relatively to Codeception output directory (also known as paths: log
in
codeception.yml) unless you specify an absolute path. You can traverse up using
..
as usual. outputDirectory
defaults to allure-results
.
linkTemplates
is used to process links and generate URLs for them. You can put
here an sprintf()
-like template or a name of class to be constructed; such class
must implement Qameta\Allure\Setup\LinkTemplateInterface
.
setupHook
allows to execute some bootstrapping code during initialization. You can
put here a name of the class that implements magic __invoke()
method - and that method
will be called. For example, it can be used to ignore unnecessary docblock annotations:
To generate report from your favourite terminal, install allure-cli and run following command (assuming you're in project root and using default configuration):
Report will be generated in build/allure-report
.
Main features
See respective PHPUnit section.
All versions of allure-codeception with dependencies
ext-json Version *
codeception/codeception Version ^5.0.3
allure-framework/allure-php-commons Version ^2.3.1