Skip to content

Commit 3f53c96

Browse files
committed
fix: insight change is absolute
1 parent e6fec66 commit 3f53c96

21 files changed

+197
-151
lines changed

docs/functions/enrichReportWithInsights.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
> **enrichReportWithInsights**(`currentReport`, `previousReports`, `baseline?`): [`Report`](../interfaces/Report.md)
1010
11-
Defined in: [src/methods/run-insights.ts:824](https://github.com/ctrf-io/ctrf-core-js/blob/main/src/methods/run-insights.ts#L824)
11+
Defined in: [src/methods/run-insights.ts:818](https://github.com/ctrf-io/ctrf-core-js/blob/main/src/methods/run-insights.ts#L818)
1212

1313
## Parameters
1414

docs/interfaces/Attachment.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,36 @@
66

77
# Interface: Attachment
88

9-
Defined in: [types/ctrf.d.ts:116](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L116)
9+
Defined in: [types/ctrf.d.ts:112](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L112)
1010

1111
## Properties
1212

1313
### contentType
1414

1515
> **contentType**: `string`
1616
17-
Defined in: [types/ctrf.d.ts:118](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L118)
17+
Defined in: [types/ctrf.d.ts:114](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L114)
1818

1919
***
2020

2121
### extra?
2222

2323
> `optional` **extra**: `Record`\<`string`, `unknown`\>
2424
25-
Defined in: [types/ctrf.d.ts:120](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L120)
25+
Defined in: [types/ctrf.d.ts:116](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L116)
2626

2727
***
2828

2929
### name
3030

3131
> **name**: `string`
3232
33-
Defined in: [types/ctrf.d.ts:117](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L117)
33+
Defined in: [types/ctrf.d.ts:113](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L113)
3434

3535
***
3636

3737
### path
3838

3939
> **path**: `string`
4040
41-
Defined in: [types/ctrf.d.ts:119](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L119)
41+
Defined in: [types/ctrf.d.ts:115](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L115)

docs/interfaces/Environment.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,132 +6,132 @@
66

77
# Interface: Environment
88

9-
Defined in: [types/ctrf.d.ts:85](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L85)
9+
Defined in: [types/ctrf.d.ts:81](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L81)
1010

1111
## Properties
1212

1313
### appName?
1414

1515
> `optional` **appName**: `string`
1616
17-
Defined in: [types/ctrf.d.ts:87](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L87)
17+
Defined in: [types/ctrf.d.ts:83](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L83)
1818

1919
***
2020

2121
### appVersion?
2222

2323
> `optional` **appVersion**: `string`
2424
25-
Defined in: [types/ctrf.d.ts:88](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L88)
25+
Defined in: [types/ctrf.d.ts:84](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L84)
2626

2727
***
2828

2929
### branchName?
3030

3131
> `optional` **branchName**: `string`
3232
33-
Defined in: [types/ctrf.d.ts:96](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L96)
33+
Defined in: [types/ctrf.d.ts:92](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L92)
3434

3535
***
3636

3737
### buildId?
3838

3939
> `optional` **buildId**: `string`
4040
41-
Defined in: [types/ctrf.d.ts:89](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L89)
41+
Defined in: [types/ctrf.d.ts:85](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L85)
4242

4343
***
4444

4545
### buildName?
4646

4747
> `optional` **buildName**: `string`
4848
49-
Defined in: [types/ctrf.d.ts:90](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L90)
49+
Defined in: [types/ctrf.d.ts:86](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L86)
5050

5151
***
5252

5353
### buildNumber?
5454

55-
> `optional` **buildNumber**: `string`
55+
> `optional` **buildNumber**: `number`
5656
57-
Defined in: [types/ctrf.d.ts:91](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L91)
57+
Defined in: [types/ctrf.d.ts:87](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L87)
5858

5959
***
6060

6161
### buildUrl?
6262

6363
> `optional` **buildUrl**: `string`
6464
65-
Defined in: [types/ctrf.d.ts:92](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L92)
65+
Defined in: [types/ctrf.d.ts:88](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L88)
6666

6767
***
6868

6969
### commit?
7070

7171
> `optional` **commit**: `string`
7272
73-
Defined in: [types/ctrf.d.ts:95](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L95)
73+
Defined in: [types/ctrf.d.ts:91](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L91)
7474

7575
***
7676

7777
### extra?
7878

7979
> `optional` **extra**: `Record`\<`string`, `unknown`\>
8080
81-
Defined in: [types/ctrf.d.ts:101](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L101)
81+
Defined in: [types/ctrf.d.ts:97](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L97)
8282

8383
***
8484

8585
### osPlatform?
8686

8787
> `optional` **osPlatform**: `string`
8888
89-
Defined in: [types/ctrf.d.ts:97](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L97)
89+
Defined in: [types/ctrf.d.ts:93](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L93)
9090

9191
***
9292

9393
### osRelease?
9494

9595
> `optional` **osRelease**: `string`
9696
97-
Defined in: [types/ctrf.d.ts:98](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L98)
97+
Defined in: [types/ctrf.d.ts:94](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L94)
9898

9999
***
100100

101101
### osVersion?
102102

103103
> `optional` **osVersion**: `string`
104104
105-
Defined in: [types/ctrf.d.ts:99](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L99)
105+
Defined in: [types/ctrf.d.ts:95](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L95)
106106

107107
***
108108

109109
### reportName?
110110

111111
> `optional` **reportName**: `string`
112112
113-
Defined in: [types/ctrf.d.ts:86](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L86)
113+
Defined in: [types/ctrf.d.ts:82](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L82)
114114

115115
***
116116

117117
### repositoryName?
118118

119119
> `optional` **repositoryName**: `string`
120120
121-
Defined in: [types/ctrf.d.ts:93](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L93)
121+
Defined in: [types/ctrf.d.ts:89](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L89)
122122

123123
***
124124

125125
### repositoryUrl?
126126

127127
> `optional` **repositoryUrl**: `string`
128128
129-
Defined in: [types/ctrf.d.ts:94](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L94)
129+
Defined in: [types/ctrf.d.ts:90](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L90)
130130

131131
***
132132

133133
### testEnvironment?
134134

135135
> `optional` **testEnvironment**: `string`
136136
137-
Defined in: [types/ctrf.d.ts:100](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L100)
137+
Defined in: [types/ctrf.d.ts:96](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L96)

docs/interfaces/Insights.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,68 +6,68 @@
66

77
# Interface: Insights
88

9-
Defined in: [types/ctrf.d.ts:139](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L139)
9+
Defined in: [types/ctrf.d.ts:135](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L135)
1010

1111
## Properties
1212

1313
### averageRunDuration?
1414

1515
> `optional` **averageRunDuration**: [`InsightsMetric`](InsightsMetric.md)
1616
17-
Defined in: [types/ctrf.d.ts:144](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L144)
17+
Defined in: [types/ctrf.d.ts:140](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L140)
1818

1919
***
2020

2121
### averageTestDuration?
2222

2323
> `optional` **averageTestDuration**: [`InsightsMetric`](InsightsMetric.md)
2424
25-
Defined in: [types/ctrf.d.ts:146](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L146)
25+
Defined in: [types/ctrf.d.ts:142](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L142)
2626

2727
***
2828

2929
### extra?
3030

3131
> `optional` **extra**: `Record`\<`string`, `unknown`\>
3232
33-
Defined in: [types/ctrf.d.ts:147](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L147)
33+
Defined in: [types/ctrf.d.ts:143](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L143)
3434

3535
***
3636

3737
### failRate?
3838

3939
> `optional` **failRate**: [`InsightsMetric`](InsightsMetric.md)
4040
41-
Defined in: [types/ctrf.d.ts:142](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L142)
41+
Defined in: [types/ctrf.d.ts:138](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L138)
4242

4343
***
4444

4545
### flakyRate?
4646

4747
> `optional` **flakyRate**: [`InsightsMetric`](InsightsMetric.md)
4848
49-
Defined in: [types/ctrf.d.ts:143](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L143)
49+
Defined in: [types/ctrf.d.ts:139](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L139)
5050

5151
***
5252

5353
### p95RunDuration?
5454

5555
> `optional` **p95RunDuration**: [`InsightsMetric`](InsightsMetric.md)
5656
57-
Defined in: [types/ctrf.d.ts:145](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L145)
57+
Defined in: [types/ctrf.d.ts:141](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L141)
5858

5959
***
6060

6161
### passRate?
6262

6363
> `optional` **passRate**: [`InsightsMetric`](InsightsMetric.md)
6464
65-
Defined in: [types/ctrf.d.ts:141](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L141)
65+
Defined in: [types/ctrf.d.ts:137](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L137)
6666

6767
***
6868

6969
### runsAnalyzed?
7070

7171
> `optional` **runsAnalyzed**: `number`
7272
73-
Defined in: [types/ctrf.d.ts:140](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L140)
73+
Defined in: [types/ctrf.d.ts:136](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L136)

docs/interfaces/InsightsMetric.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,28 @@
66

77
# Interface: InsightsMetric
88

9-
Defined in: [types/ctrf.d.ts:160](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L160)
9+
Defined in: [types/ctrf.d.ts:156](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L156)
1010

1111
## Properties
1212

1313
### baseline
1414

1515
> **baseline**: `number`
1616
17-
Defined in: [types/ctrf.d.ts:162](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L162)
17+
Defined in: [types/ctrf.d.ts:158](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L158)
1818

1919
***
2020

2121
### change
2222

2323
> **change**: `number`
2424
25-
Defined in: [types/ctrf.d.ts:163](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L163)
25+
Defined in: [types/ctrf.d.ts:159](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L159)
2626

2727
***
2828

2929
### current
3030

3131
> **current**: `number`
3232
33-
Defined in: [types/ctrf.d.ts:161](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L161)
33+
Defined in: [types/ctrf.d.ts:157](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L157)

docs/interfaces/Report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Defined in: [types/ctrf.d.ts:8](https://github.com/ctrf-io/ctrf-core-js/blob/mai
4444

4545
### reportFormat
4646

47-
> **reportFormat**: `string`
47+
> **reportFormat**: `"CTRF"`
4848
4949
Defined in: [types/ctrf.d.ts:2](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L2)
5050

@@ -68,7 +68,7 @@ Defined in: [types/ctrf.d.ts:7](https://github.com/ctrf-io/ctrf-core-js/blob/mai
6868

6969
### specVersion
7070

71-
> **specVersion**: `string`
71+
> **specVersion**: `` `${number}.${number}.${number}` ``
7272
7373
Defined in: [types/ctrf.d.ts:3](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L3)
7474

docs/interfaces/Results.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,15 @@ Defined in: [types/ctrf.d.ts:13](https://github.com/ctrf-io/ctrf-core-js/blob/ma
1414

1515
> `optional` **environment**: [`Environment`](Environment.md)
1616
17-
Defined in: [types/ctrf.d.ts:18](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L18)
17+
Defined in: [types/ctrf.d.ts:17](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L17)
1818

1919
***
2020

2121
### extra?
2222

2323
> `optional` **extra**: `Record`\<`string`, `unknown`\>
2424
25-
Defined in: [types/ctrf.d.ts:19](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L19)
26-
27-
***
28-
29-
### metrics?
30-
31-
> `optional` **metrics**: `Metrics`
32-
33-
Defined in: [types/ctrf.d.ts:16](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L16)
25+
Defined in: [types/ctrf.d.ts:18](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L18)
3426

3527
***
3628

@@ -46,7 +38,7 @@ Defined in: [types/ctrf.d.ts:15](https://github.com/ctrf-io/ctrf-core-js/blob/ma
4638

4739
> **tests**: [`Test`](Test.md)[]
4840
49-
Defined in: [types/ctrf.d.ts:17](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L17)
41+
Defined in: [types/ctrf.d.ts:16](https://github.com/ctrf-io/ctrf-core-js/blob/main/types/ctrf.d.ts#L16)
5042

5143
***
5244

0 commit comments

Comments
 (0)