File tree 2 files changed +7
-0
lines changed
src/Yandex/Allure/Adapter
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ extensions:
27
27
Yandex\Allure\Adapter\AllureAdapter :
28
28
deletePreviousResults : false
29
29
outputDirectory : allure-results
30
+ ignoredAnnotations :
31
+ - env
32
+ - dataprovider
30
33
` ` `
31
34
32
35
` deletePreviousResults` will clear all `.xml` files from output directory (this
@@ -37,6 +40,8 @@ relatively to Codeception output directory (also known as `paths: log` in
37
40
codeception.yml) unless you specify an absolute path. You can traverse up using
38
41
` ..` as usual. `outputDirectory` defaults to `allure-results`.
39
42
43
+ ` ignoredAnnotations` is used to define extra custom annotations to ignore. It is empty by default.
44
+
40
45
To generate report from your favourite terminal,
41
46
[install](https://github.com/allure-framework/allure-cli#installation)
42
47
allure-cli and run following command (assuming you're in project root and using
Original file line number Diff line number Diff line change 28
28
29
29
const OUTPUT_DIRECTORY_PARAMETER = 'outputDirectory ' ;
30
30
const DELETE_PREVIOUS_RESULTS_PARAMETER = 'deletePreviousResults ' ;
31
+ const IGNORED_ANNOTATION_PARAMETER = 'ignoredAnnotations ' ;
31
32
const DEFAULT_RESULTS_DIRECTORY = 'allure-results ' ;
32
33
const DEFAULT_REPORT_DIRECTORY = 'allure-report ' ;
33
34
const INITIALIZED_PARAMETER = '_initialized ' ;
@@ -82,6 +83,7 @@ public function _initialize(array $ignoredAnnotations = [])
82
83
// Add standard PHPUnit annotations
83
84
Annotation \AnnotationProvider::addIgnoredAnnotations ($ this ->ignoredAnnotations );
84
85
// Add custom ignored annotations
86
+ $ ignoredAnnotations = $ this ->tryGetOption (IGNORED_ANNOTATION_PARAMETER , []);
85
87
Annotation \AnnotationProvider::addIgnoredAnnotations ($ ignoredAnnotations );
86
88
$ outputDirectory = $ this ->getOutputDirectory ();
87
89
$ deletePreviousResults =
You can’t perform that action at this time.
0 commit comments