You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Other arguments (if any) are passed to configurator's constructor -->
52
+
<!-- Path to config file (default is config/allure.config.php) -->
53
+
<string>config/allure.config.php</string>
57
54
</arguments>
58
55
</extension>
59
56
</extensions>
60
57
```
61
-
After running PHPUnit tests a new folder will be created (**build/allure-results** in the example above). This folder will contain generated JSON files. See [framework help](https://docs.qameta.io/allure/#_reporting) for details about how to generate report from JSON files. By default generated report will only show a limited set of information but you can use cool Allure features by adding a minimum of test code changes. Read next section for details.
62
-
63
-
You can also use setup hook to tune or extend Allure lifecycle:
// Path to output directory (default is build/allure-results)
64
+
'outputDirectory' => 'build/allure-results',
65
+
'linkTemplates' => [
66
+
// Class or object must implement \Qameta\Allure\Setup\LinkTemplateInterface
67
+
'tms' => \My\LinkTemplate::class,
68
+
],
69
+
'setupHook' => function (): void {
70
+
// Some actions performed before starting the lifecycle
71
+
},
72
+
// Class or object must implement \Qameta\Allure\PHPUnit\Setup\ThreadDetectorInterface
73
+
'threadDetector' => \My\ThreadDetector::class,
74
+
'lifecycleHooks' => [
75
+
// Class or object must implement one of \Qameta\Allure\Hook\LifecycleHookInterface descendants.
76
+
\My\LifecycleHook::class,
77
+
],
78
+
];
96
79
```
97
80
98
-
In the above example we add some custom hook `MyHook`to Allure lifecycle.
81
+
After running PHPUnit tests a new folder will be created (**build/allure-results** in the example above). This folder will contain generated JSON files. See [framework help](https://docs.qameta.io/allure/#_reporting) for details about how to generate report from JSON files. By default generated report will only show a limited set of information but you can use cool Allure features by adding a minimum of test code changes. Read next section for details.
99
82
100
83
## Main features
101
84
This adapter comes with a set of PHP annotations and traits allowing to use main Allure features.
0 commit comments