Skip to content

Commit 22f38ea

Browse files
authored
Merge pull request #134 from reportportal/develop
Release 5.0.7
2 parents 9a462c7 + 31bc8cd commit 22f38ea

File tree

10 files changed

+5593
-5515
lines changed

10 files changed

+5593
-5515
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @AmsterGet @Bam6ycha

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- name: Setup NodeJS
6666
uses: actions/setup-node@v2
6767
with:
68-
node-version: '12'
68+
node-version: '12'
6969
- name: Configure git
7070
run: |
7171
git config --global user.email "reportportal.io"
@@ -125,7 +125,7 @@ jobs:
125125
id: createRelease
126126
uses: actions/create-release@v1
127127
env:
128-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
128+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
129129
with:
130130
tag_name: v${{ needs.calculate-version.outputs.releaseVersion }}
131131
release_name: Release v${{ needs.calculate-version.outputs.releaseVersion }}
@@ -136,5 +136,5 @@ jobs:
136136
if: success()
137137
uses: peter-evans/repository-dispatch@v1
138138
with:
139-
token: ${{ secrets.GH_TOKEN }}
139+
token: ${{ secrets.GITHUB_TOKEN }}
140140
event-type: version-released

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### Fixed
2+
- `isLaunchMergeRequired` option from `client-javascript` missed.
3+
### Changed
4+
- `@reportportal/client-javascript` bumped to version `5.0.15`. `launchUuidPrint` and `launchUuidPrintOutput` configuration options introduced.
5+
- Readme file updated.
6+
- Logging link to the launch on its finish now available by default. `logLaunchLink` option is removed from the config.
7+
### Security
8+
- Updated versions of vulnerable packages (@babel/traverse).
19

210
## [5.0.6] - 2023-07-18
311
### Changed

README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,25 @@ In case you use the jest config section of `package.json`, add the following ent
7676

7777
The full list of available options presented below.
7878

79-
| Option | Necessity | Default | Description |
80-
|------------------|------------|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
81-
| apiKey | Required | | User's reportportal token from which you want to send requests. It can be found on the profile page of this user. |
82-
| endpoint | Required | | URL of your server. For example 'https://server:8080/api/v1'. |
83-
| launch | Required | | Name of launch at creation. |
84-
| project | Required | | The name of the project in which the launches will be created. |
85-
| attributes | Optional | [] | Launch attributes. |
86-
| description | Optional | '' | Launch description. |
87-
| rerun | Optional | false | Enable [rerun](https://github.com/reportportal/documentation/blob/master/src/md/src/DevGuides/rerun.md) |
88-
| rerunOf | Optional | Not set | UUID of launch you want to rerun. If not specified, reportportal will update the latest launch with the same name |
89-
| mode | Optional | 'DEFAULT' | Results will be submitted to Launches page <br/> *'DEBUG'* - Results will be submitted to Debug page. |
90-
| skippedIssue | Optional | true | reportportal provides feature to mark skipped tests as not 'To Investigate'. <br/> Option could be equal boolean values: <br/> *true* - skipped tests considered as issues and will be marked as 'To Investigate' on reportportal. <br/> *false* - skipped tests will not be marked as 'To Investigate' on application. |
91-
| debug | Optional | false | This flag allows seeing the logs of the client-javascript. Useful for debugging. |
92-
| launchId | Optional | Not set | The _ID_ of an already existing launch. The launch must be in 'IN_PROGRESS' status while the tests are running. Please note that if this _ID_ is provided, the launch will not be finished at the end of the run and must be finished separately. |
93-
| logLaunchLink | Optional | false | This flag allows print the URL of the Launch of the tests in console. |
94-
| restClientConfig | Optional | Not set | 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`](https://github.com/reportportal/client-javascript#timeout-30000ms-on-axios-requests). <br/> Visit [client-javascript](https://github.com/reportportal/client-javascript) for more details. |
95-
| token | Deprecated | Not set | Use `apiKey` instead. |
79+
| Option | Necessity | Default | Description |
80+
|-----------------------|------------|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
81+
| apiKey | Required | | User's reportportal token from which you want to send requests. It can be found on the profile page of this user. |
82+
| endpoint | Required | | URL of your server. For example 'https://server:8080/api/v1'. |
83+
| launch | Required | | Name of launch at creation. |
84+
| project | Required | | The name of the project in which the launches will be created. |
85+
| attributes | Optional | [] | Launch attributes. |
86+
| description | Optional | '' | Launch description. |
87+
| rerun | Optional | false | Enable [rerun](https://reportportal.io/docs/dev-guides/RerunDevelopersGuide) |
88+
| rerunOf | Optional | Not set | UUID of launch you want to rerun. If not specified, reportportal will update the latest launch with the same name |
89+
| mode | Optional | 'DEFAULT' | Results will be submitted to Launches page <br/> *'DEBUG'* - Results will be submitted to Debug page. |
90+
| skippedIssue | Optional | true | reportportal provides feature to mark skipped tests as not 'To Investigate'. <br/> Option could be equal boolean values: <br/> *true* - skipped tests considered as issues and will be marked as 'To Investigate' on reportportal. <br/> *false* - skipped tests will not be marked as 'To Investigate' on application. |
91+
| debug | Optional | false | This flag allows seeing the logs of the client-javascript. Useful for debugging. |
92+
| launchId | Optional | Not set | The _ID_ of an already existing launch. The launch must be in 'IN_PROGRESS' status while the tests are running. Please note that if this _ID_ is provided, the launch will not be finished at the end of the run and must be finished separately. |
93+
| restClientConfig | Optional | Not set | 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`](https://github.com/reportportal/client-javascript#timeout-30000ms-on-axios-requests). <br/> Visit [client-javascript](https://github.com/reportportal/client-javascript) for more details. |
94+
| isLaunchMergeRequired | Optional | false | This flag determines whether to create temp files with the UUIDs of started launches and allow them to be merged using [`client-javascript`'s `mergeLaunches` method](https://github.com/reportportal/client-javascript#mergelaunches). Temp file format: `rplaunch-${launch_uuid}.tmp`. |
95+
| launchUuidPrint | Optional | false | Whether to print the current launch UUID. |
96+
| launchUuidPrintOutput | Optional | 'STDOUT' | Launch UUID printing output. Possible values: 'STDOUT', 'STDERR'. Works only if `launchUuidPrint` set to `true`. |
97+
| token | Deprecated | Not set | Use `apiKey` instead. |
9698

9799
The following options can be overridden using ENVIRONMENT variables:
98100

VERSION

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

__tests__/mocks/reportportal-client.mock.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const reporterOptions = {
2020
project: 'projectName',
2121
launch: 'launcherName',
2222
description: 'description',
23-
logLaunchLink: true,
2423
attributes: [
2524
{
2625
key: 'YourKey',

index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,6 @@ class JestReportPortal {
111111
}
112112
const { promise } = this.client.finishLaunch(this.tempLaunchId);
113113

114-
if (this.reportOptions.logLaunchLink === true) {
115-
promise.then((response) => {
116-
console.log(`\nReportPortal Launch Link: ${response.link}`);
117-
});
118-
}
119-
120114
promiseErrorHandler(promise);
121115
await promise;
122116
}

0 commit comments

Comments
 (0)