-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release: qase-javascript-commons 2.0.11
Bump the version of the package and update the changelog
- Loading branch information
Showing
2 changed files
with
33 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
# [email protected] | ||
|
||
## What's new | ||
|
||
- Improved logging for better debugging and error reporting. | ||
|
||
- Show the link to the test run in the console output when the test is failed. | ||
|
||
```text | ||
[INFO] qase: You can see the failed test in Qase: https://app.qase.io/run/PC/dashboard/1257?status=%5B2%5D&search=5%20-%206%20=%20-2 | ||
``` | ||
|
||
# [email protected] | ||
|
||
## What's new | ||
|
@@ -8,7 +20,6 @@ Now the reporter will send the test results only once. | |
The Cypress calls the `publish` method multiple times for the same test results because of the Cypress architecture. | ||
It calls the `publish` method for each test file. | ||
|
||
|
||
# [email protected] | ||
|
||
## What's new | ||
|
@@ -30,13 +41,15 @@ This option is available in the config file and the `QASE_ROOT_SUITE` env variab | |
|
||
## What's new | ||
|
||
Fixed an issue with creating a test run with environment when the reporter ignored the `environment` parameter in the configuration. | ||
Fixed an issue with creating a test run with environment when the reporter ignored the `environment` parameter in the | ||
configuration. | ||
|
||
# [email protected] | ||
|
||
## What's new | ||
|
||
Fixed an issue with creating a defect for failed tests when the reporter ignored the `defect` parameter in the configuration. | ||
Fixed an issue with creating a defect for failed tests when the reporter ignored the `defect` parameter in the | ||
configuration. | ||
|
||
# [email protected] | ||
|
||
|
@@ -91,7 +104,7 @@ Before this fix, the reporter added ANSI escape codes to the message and stack t | |
## What's new | ||
|
||
This is the first release version of the Qase JavaScript SDK. | ||
It is numbered `2.0.0` (and not `1.0.0`) to match the release series of | ||
It is numbered `2.0.0` (and not `1.0.0`) to match the release series of | ||
test reporters for Playwright, Cypress, Jest, and other frameworks. | ||
|
||
### Annotating test with field data | ||
|
@@ -101,9 +114,9 @@ This feature is already implemented in the Playwright reporter: | |
|
||
```js | ||
test('Test with annotated fields', () => { | ||
qase.id(1); | ||
qase.fields({ 'severity': 'high', 'priority': 'medium' }) | ||
// ... | ||
qase.id(1); | ||
qase.fields({ 'severity': 'high', 'priority': 'medium' }) | ||
// ... | ||
}); | ||
``` | ||
|
||
|
@@ -130,7 +143,8 @@ It helps bring test results faster and enables acting on them long before the te | |
Qase JavaScript SDK brings configuration with config files and environment variables | ||
to a common standard, used with Qase reporters in all languages and frameworks. | ||
|
||
For details, see the [Configuration](https://github.com/qase-tms/qase-javascript/tree/main/qase-javascript-commons#configuration) | ||
For details, see | ||
the [Configuration](https://github.com/qase-tms/qase-javascript/tree/main/qase-javascript-commons#configuration) | ||
section in the README. | ||
|
||
### Latest API | ||
|
@@ -169,17 +183,17 @@ Fixed an issue when the results published before the test run creation. | |
|
||
Improved debug logging for better testing and reporting errors. | ||
|
||
- Separate `logger` class for use in reporters, supporting logging to console and files. | ||
- Extra debug logs in both reporter modes: TestOps and Local. | ||
- Separate `logger` class for use in reporters, supporting logging to console and files. | ||
- Extra debug logs in both reporter modes: TestOps and Local. | ||
|
||
Fixed an issue with duplicate test runs created when the testing framework | ||
(such as Cypress) uses more than one instance of the Qase reporter. | ||
Now reporter handles Qase test runs in the following way: | ||
|
||
1. The first instance of the reporter creates a Qase test run and stores the run ID | ||
in the ENV variable `QASE_TESTOPS_RUN_ID`. | ||
2. Other instances of the reporter read this variable and report test results | ||
to the existing test run. | ||
1. The first instance of the reporter creates a Qase test run and stores the run ID | ||
in the ENV variable `QASE_TESTOPS_RUN_ID`. | ||
2. Other instances of the reporter read this variable and report test results | ||
to the existing test run. | ||
|
||
Nothing has changed in cases when there is a single instance of a reporter or | ||
when it is using a test run, created with other tools, such as with an API request | ||
|
@@ -251,7 +265,7 @@ This commit introduces a way to select the API version to use. | |
It enables using all new features of v2 JS reporters with the stable v1 API, | ||
and elso experimenting with the new v2 API. | ||
|
||
**Warning**: v2 API is still in beta. | ||
**Warning**: v2 API is still in beta. | ||
If you want to try the v2 JS reporters, you don't have to enable the new API. | ||
|
||
To enable using API v2, set an environment variable before running the tests: | ||
|
@@ -267,16 +281,17 @@ Such description can be collected from test's location and attributes | |
or explicitly declared in the test. | ||
|
||
Add new data models: | ||
|
||
- Relation | ||
- Suite | ||
- SuiteData | ||
|
||
|
||
# [email protected] | ||
|
||
## What's new | ||
|
||
* Update the config of reporters. Added `captureLogs` field. If it is set to `true`, the reporter will capture logs from the test framework. | ||
* Update the config of reporters. Added `captureLogs` field. If it is set to `true`, the reporter will capture logs from | ||
the test framework. | ||
* Added `getMimeType` function to the commons package. It returns the MIME type of the file by its extension. | ||
|
||
# [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters