Skip to content

Commit f9e1b37

Browse files
authored
Merge pull request #124 from reportportal/develop
EPMRPP-82453 || Agent release 5.0.5
2 parents 0e6369e + 3386b55 commit f9e1b37

File tree

10 files changed

+5625
-4639
lines changed

10 files changed

+5625
-4639
lines changed

.editorconfig

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
root = true
66

77
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
810

11+
[*.js]
912
indent_style = space
10-
indent_size = 4
11-
12-
end_of_line = lf
13-
charset = utf-8
13+
indent_size = 2
1414
trim_trailing_whitespace = true
15-
insert_final_newline = true

.github/workflows/CI-pipeline.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v2
1616
- name: Set up Node.js
17-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v2
1818
with:
19-
node-version: 12.x
19+
node-version: 18
2020
- name: Clean install of node dependencies
2121
run: npm ci
2222
- name: Run lint
2323
run: npm run lint
24-
- name: Run tests
25-
run: npm test
26-
- name: Check coverage
24+
- name: Run tests and check coverage
2725
run: npm run test:coverage

.github/workflows/publish.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,14 @@ jobs:
1111
- name: Checkout repository
1212
uses: actions/checkout@v2
1313
- name: Set up Node.js
14-
uses: actions/setup-node@v1
14+
uses: actions/setup-node@v2
1515
with:
16-
node-version: 12.x
16+
node-version: 18
1717
- name: Clean install of node dependencies
1818
run: npm ci
1919
- name: Run lint
2020
run: npm run lint
21-
- name: Run tests
22-
run: npm test
23-
- name: Check coverage
21+
- name: Run tests and check coverage
2422
run: npm run test:coverage
2523

2624
publish-to-npm-and-gpr:
@@ -30,9 +28,9 @@ jobs:
3028
- name: Checkout repository
3129
uses: actions/checkout@v2
3230
- name: Set up Node.js
33-
uses: actions/setup-node@v1
31+
uses: actions/setup-node@v2
3432
with:
35-
node-version: 12.x
33+
node-version: 18
3634
registry-url: 'https://registry.npmjs.org'
3735
- name: Clean install of node dependencies
3836
run: npm ci
@@ -44,9 +42,9 @@ jobs:
4442
env:
4543
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
4644
- name: Set up Node.js
47-
uses: actions/setup-node@v1
45+
uses: actions/setup-node@v2
4846
with:
49-
node-version: 12.x
47+
node-version: 18
5048
registry-url: 'https://npm.pkg.github.com'
5149
scope: '@reportportal'
5250
- name: Publish to GPR

CHANGELOG.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
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
15

26
## [5.0.4] - 2022-05-30
37
### Added
48
- Possibility to provide endpoint url via `RP_ENDPOINT` environment variable
59
- New [option](./README.md#loglaunchlink-flag) `logLaunchLink` to print launch url in console
6-
710
### Fixed
811
- The duration of tests and suites is now displayed correctly
912
- The reporter will now wait for a report on all tests
1013
- Security vulnerabilities
1114
- Tests without describe block causes error [#82](https://github.com/reportportal/agent-js-jest/issues/82)
12-
1315
### Changed
1416
- Package size reduced
1517

1618
## [5.0.3] - 2021-06-23
1719
### Fixed
1820
- Nested describe blocks are not visible in report
19-
2021
### Updated
2122
- `@reportportal/client-javascript` version to the latest
22-
2323
### Added
2424
- `restClientConfig` configuration property support (more details in [client-javascript](https://github.com/reportportal/client-javascript))
2525

2626
## [5.0.2] - 2021-02-09
2727
### Added
2828
- Debug flag, launch mode configuration properties
29-
3029
### Fixed
3130
- Doesn't start a suite if test has no describe
3231
- Vulnerable dependencies (lodash)
@@ -38,6 +37,5 @@
3837
## [5.0.0] - 2020-06-11
3938
### Added
4039
- Full compatibility with ReportPortal version 5.* (see [reportportal releases](https://github.com/reportportal/reportportal/releases))
41-
4240
### Deprecated
4341
- Previous package version (`@reportportal/reportportal-agent-jest`) will no longer supported by reportportal.io

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ $ export RP_TOKEN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
8484
$ export RP_PROJECT_NAME=MY_AWESOME_PROJECT
8585
$ export RP_ENDPOINT=MY_RP_ENDPOINT
8686
$ export RP_LAUNCH=MY_COOL_LAUNCHER
87+
$ export RP_DESCRIPTION=RP_DESCRIPTION
8788
$ export RP_ATTRIBUTES=key:value,key:value,value
8889
$ export RP_LAUNCH_ID=EXIST_LAUNCH_ID
90+
$ export RP_MODE=DEBUG
8991
```
9092
9193
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.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.0.4
1+
5.0.5-SNAPSHOT

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17+
const stripAnsi = require('strip-ansi');
1718
const RPClient = require('@reportportal/client-javascript');
1819
const getOptions = require('./utils/getOptions');
1920
const {
@@ -198,8 +199,9 @@ class JestReportPortal {
198199
}
199200

200201
_sendLog(message) {
202+
const newMessage = stripAnsi(message);
201203
const logObject = {
202-
message,
204+
message: newMessage,
203205
level: logLevels.ERROR,
204206
};
205207
const { promise } = this.client.sendLog(this.tempStepId, logObject);

0 commit comments

Comments
 (0)