Skip to content

Commit 1b55829

Browse files
authored
Merge pull request #69 from reportportal/develop
Release 5.0.3
2 parents 38af6da + 9f3395e commit 1b55829

9 files changed

+364
-188
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### Fixed
2+
- Nested describe blocks are not visible in report
3+
4+
### Updated
5+
- `@reportportal/client-javascript` version to the latest
6+
7+
### Added
8+
- `restClientConfig` configuration property support (more details in [client-javascript](https://github.com/reportportal/client-javascript))
19

210
## [5.0.2] - 2021-02-09
311
### Added

README.md

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ npm install --save-dev @reportportal/agent-js-jest
99
```
1010

1111
## Usage
12+
1213
In your jest config section of `package.json`, add the following entry:
14+
1315
```JSON
1416
{
1517
"jest": {
@@ -31,7 +33,10 @@ In your jest config section of `package.json`, add the following entry:
3133
{
3234
"value": "YourValue"
3335
},
34-
]
36+
],
37+
"restClientConfig": {
38+
"timeout": 0
39+
}
3540
}]
3641
],
3742
...
@@ -74,23 +79,28 @@ It's possible by using environment variables, it's important to mention that env
7479
7580
```shell
7681
$ export RP_TOKEN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
77-
$ export RP_PROJECT=MY_AWESOME_PROJECT
82+
$ export RP_PROJECT_NAME=MY_AWESOME_PROJECT
7883
$ export RP_LAUNCH=MY_COOL_LAUNCHER
7984
$ export RP_ATTRIBUTES=key:value,key:value,value
8085
```
86+
8187
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.
8288
8389
## Disable the colors of test output:
90+
8491
In the Report Portal, the output of the test results may contain ANSI character set, this may be caused by the color setting in Jest. For version `"jest": "^24.8.0"`, use `jest --no-colors` command to disable the colors of test output.
8592
8693
## Used to report retry of test:
94+
8795
The agent supports of Retries.
8896
Read more about [retries in jest](https://jestjs.io/docs/ru/jest-object#jestretrytimes).
8997
9098
## Rerun:
99+
91100
To report [rerun](https://github.com/reportportal/documentation/blob/master/src/md/src/DevGuides/rerun.md) to the report portal you need to specify the following options:
92-
- rerun - to enable rerun
93-
- rerunOf - UUID of launch you want to rerun. If not specified, report portal will update the latest launch with the same name
101+
102+
- rerun - to enable rerun
103+
- rerunOf - UUID of launch you want to rerun. If not specified, report portal will update the latest launch with the same name
94104
95105
Example:
96106
@@ -100,7 +110,8 @@ Example:
100110
```
101111
102112
## Skipped issue:
103-
*Default: true.* ReportPortal provides feature to mark skipped tests as not 'To Investigate' items on WS side.<br> Parameter could be equal boolean values:<br> *TRUE* - skipped tests considered as issues and will be marked as 'To Investigate' on Report Portal.<br> *FALSE* - skipped tests will not be marked as 'To Investigate' on application.
113+
114+
_Default: true._ ReportPortal provides feature to mark skipped tests as not 'To Investigate' items on WS side.<br> Parameter could be equal boolean values:<br> _TRUE_ - skipped tests considered as issues and will be marked as 'To Investigate' on Report Portal.<br> _FALSE_ - skipped tests will not be marked as 'To Investigate' on application.
104115
105116
Example:
106117
@@ -109,7 +120,8 @@ Example:
109120
```
110121
111122
## Launch mode:
112-
Launch mode. Allowable values *DEFAULT* (by default) or *DEBUG*.
123+
124+
Launch mode. Allowable values _DEFAULT_ (by default) or _DEBUG_.
113125
114126
Example:
115127
@@ -118,6 +130,7 @@ Example:
118130
```
119131
120132
## Debug flag:
133+
121134
This flag allows seeing the logs of the client-javascript. Useful for debugging an agent.
122135
123136
Example:
@@ -126,11 +139,18 @@ Example:
126139
"debug": true
127140
```
128141
142+
## REST Client config:
143+
144+
Optional property.<br/>
145+
The object with `agent` property for configure [http(s)](https://nodejs.org/api/https.html#https_https_request_url_options_callback) client, may contain other client options eg. `timeout`.<br/>
146+
Visit [client-javascript](https://github.com/reportportal/client-javascript) for more details.
147+
129148
# Copyright Notice
130149
131150
Licensed under the [Apache License v2.0](LICENSE)
132151
133152
# Contribution
153+
134154
This code was based on the [jest-junit](https://github.com/jest-community/jest-junit)
135155
and adapted by team members of [Ontoforce](https://www.ontoforce.com) for the
136156
ReportPortal upload. Ontoforce contributed this effort as Open Source to the

VERSION

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

0 commit comments

Comments
 (0)