-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathallure-categories.config.js
48 lines (47 loc) · 1.17 KB
/
allure-categories.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module.exports = [
// Default categories
{
name: 'Ignored tests',
matchedStatuses: ['skipped'],
},
{
name: 'Product defects',
matchedStatuses: ['failed'],
messageRegex: '.*Assertion failed.*',
},
{
name: 'Test defects',
matchedStatuses: ['failed'],
},
{
name: 'Warnings',
matchedStatuses: ['passed'],
messageRegex: '.*Warning.*',
},
{
name: 'Flaky tests',
matchedStatuses: ['passed', 'failed'],
messageRegex: '.*Flaky.*',
},
// Custom categories
// https://github.com/isaaceindhoven/testcafe-reporter-allure/issues/45
{
name: 'Selector Not Found',
traceRegex: '.*selector does not match any.*',
},
{
name: 'Setup Errors',
messageRegex: '.*Error in (fixture|test).before(Each)? hook.*',
},
{ name: 'Assertion Errors', messageRegex: '.*AssertionError:.*' },
{ name: 'Role Errors', messageRegex: '.*Error in Role initializer.*' },
{
name: 'Type Errors',
messageRegex: '.*TypeError: Cannot read property.*',
},
{
name: 'Client Function Errors',
messageRegex: '.*An error occurred in ClientFunction code.*',
},
{ name: 'Ignored tests', matchedStatuses: ['skipped'] },
];