File tree 10 files changed +5625
-4639
lines changed 10 files changed +5625
-4639
lines changed Original file line number Diff line number Diff line change 5
5
root = true
6
6
7
7
[* ]
8
+ end_of_line = lf
9
+ insert_final_newline = true
8
10
11
+ [* .js ]
9
12
indent_style = space
10
- indent_size = 4
11
-
12
- end_of_line = lf
13
- charset = utf-8
13
+ indent_size = 2
14
14
trim_trailing_whitespace = true
15
- insert_final_newline = true
Original file line number Diff line number Diff line change @@ -14,14 +14,12 @@ jobs:
14
14
- name : Checkout repository
15
15
uses : actions/checkout@v2
16
16
- name : Set up Node.js
17
- uses : actions/setup-node@v1
17
+ uses : actions/setup-node@v2
18
18
with :
19
- node-version : 12.x
19
+ node-version : 18
20
20
- name : Clean install of node dependencies
21
21
run : npm ci
22
22
- name : Run lint
23
23
run : npm run lint
24
- - name : Run tests
25
- run : npm test
26
- - name : Check coverage
24
+ - name : Run tests and check coverage
27
25
run : npm run test:coverage
Original file line number Diff line number Diff line change @@ -11,16 +11,14 @@ jobs:
11
11
- name : Checkout repository
12
12
uses : actions/checkout@v2
13
13
- name : Set up Node.js
14
- uses : actions/setup-node@v1
14
+ uses : actions/setup-node@v2
15
15
with :
16
- node-version : 12.x
16
+ node-version : 18
17
17
- name : Clean install of node dependencies
18
18
run : npm ci
19
19
- name : Run lint
20
20
run : npm run lint
21
- - name : Run tests
22
- run : npm test
23
- - name : Check coverage
21
+ - name : Run tests and check coverage
24
22
run : npm run test:coverage
25
23
26
24
publish-to-npm-and-gpr :
30
28
- name : Checkout repository
31
29
uses : actions/checkout@v2
32
30
- name : Set up Node.js
33
- uses : actions/setup-node@v1
31
+ uses : actions/setup-node@v2
34
32
with :
35
- node-version : 12.x
33
+ node-version : 18
36
34
registry-url : ' https://registry.npmjs.org'
37
35
- name : Clean install of node dependencies
38
36
run : npm ci
44
42
env :
45
43
NODE_AUTH_TOKEN : ${{ secrets.NPM_ACCESS_TOKEN }}
46
44
- name : Set up Node.js
47
- uses : actions/setup-node@v1
45
+ uses : actions/setup-node@v2
48
46
with :
49
- node-version : 12.x
47
+ node-version : 18
50
48
registry-url : ' https://npm.pkg.github.com'
51
49
scope : ' @reportportal'
52
50
- name : Publish to GPR
Original file line number Diff line number Diff line change
1
+ ### Added
2
+ - ` RP_DESCRIPTION ` & ` RP.MODE ` env variables support. Thanks to [ Jonathan Carvalheiro] ( https://github.com/Jonathan-Carvalheiro )
3
+ ### Fixed
4
+ - Log messages in RP shown without ANSI characters
1
5
2
6
## [ 5.0.4] - 2022-05-30
3
7
### Added
4
8
- Possibility to provide endpoint url via ` RP_ENDPOINT ` environment variable
5
9
- New [ option] ( ./README.md#loglaunchlink-flag ) ` logLaunchLink ` to print launch url in console
6
-
7
10
### Fixed
8
11
- The duration of tests and suites is now displayed correctly
9
12
- The reporter will now wait for a report on all tests
10
13
- Security vulnerabilities
11
14
- Tests without describe block causes error [ #82 ] ( https://github.com/reportportal/agent-js-jest/issues/82 )
12
-
13
15
### Changed
14
16
- Package size reduced
15
17
16
18
## [ 5.0.3] - 2021-06-23
17
19
### Fixed
18
20
- Nested describe blocks are not visible in report
19
-
20
21
### Updated
21
22
- ` @reportportal/client-javascript ` version to the latest
22
-
23
23
### Added
24
24
- ` restClientConfig ` configuration property support (more details in [ client-javascript] ( https://github.com/reportportal/client-javascript ) )
25
25
26
26
## [ 5.0.2] - 2021-02-09
27
27
### Added
28
28
- Debug flag, launch mode configuration properties
29
-
30
29
### Fixed
31
30
- Doesn't start a suite if test has no describe
32
31
- Vulnerable dependencies (lodash)
38
37
## [ 5.0.0] - 2020-06-11
39
38
### Added
40
39
- Full compatibility with ReportPortal version 5.* (see [ reportportal releases] ( https://github.com/reportportal/reportportal/releases ) )
41
-
42
40
### Deprecated
43
41
- Previous package version (` @reportportal/reportportal-agent-jest ` ) will no longer supported by reportportal.io
Original file line number Diff line number Diff line change @@ -84,8 +84,10 @@ $ export RP_TOKEN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
84
84
$ export RP_PROJECT_NAME = MY_AWESOME_PROJECT
85
85
$ export RP_ENDPOINT = MY_RP_ENDPOINT
86
86
$ export RP_LAUNCH = MY_COOL_LAUNCHER
87
+ $ export RP_DESCRIPTION = RP_DESCRIPTION
87
88
$ export RP_ATTRIBUTES = key : value ,key : value ,value
88
89
$ export RP_LAUNCH_ID = EXIST_LAUNCH_ID
90
+ $ export RP_MODE = DEBUG
89
91
` ` `
90
92
91
93
This for your convenience in case you has a continuous job that run your tests and may post the results pointing to a different Report Portal definition of project, launcher name or tags.
Original file line number Diff line number Diff line change 1
- 5.0.4
1
+ 5.0.5-SNAPSHOT
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
+ const stripAnsi = require ( 'strip-ansi' ) ;
17
18
const RPClient = require ( '@reportportal/client-javascript' ) ;
18
19
const getOptions = require ( './utils/getOptions' ) ;
19
20
const {
@@ -198,8 +199,9 @@ class JestReportPortal {
198
199
}
199
200
200
201
_sendLog ( message ) {
202
+ const newMessage = stripAnsi ( message ) ;
201
203
const logObject = {
202
- message,
204
+ message : newMessage ,
203
205
level : logLevels . ERROR ,
204
206
} ;
205
207
const { promise } = this . client . sendLog ( this . tempStepId , logObject ) ;
You can’t perform that action at this time.
0 commit comments