Skip to content

Commit

Permalink
Bump cypress-xray-plugin from 6.0.0 to 7.0.0 (#326)
Browse files Browse the repository at this point in the history
* Bump cypress-xray-plugin from 6.0.0 to 7.0.0

* Fix `CHANGELOG.md`

* Add dependency updates

* Fix markdown syntax
  • Loading branch information
csvtuda authored May 13, 2024
1 parent 4b87a89 commit 7d8ce9e
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 3 deletions.
146 changes: 146 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,151 @@
# Changelog

# `7.0.0`

## Breaking changes

- Removed `addResultsUpload` function

- Changed `configureXrayPlugin` function which now expects Cypress' `on` as first parameter:

<table>
<thead>
<tr>
<th>
<pre>6.0.0</pre>
</th>
<th>
<pre>7.0.0</pre>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>

```ts
// cypress.config.js
import { configureXrayPlugin, addXrayResultUpload } from "cypress-xray-plugin";

async setupNodeEvents(on, config) {
await configureXrayPlugin(
config,
{
jira: {
url: "https://example.org",
projectKey: "ABC"
}
}
);
await addXrayResultUpload(on);
}
```
</td>
<td>

```ts
// cypress.config.js
import { configureXrayPlugin } from "cypress-xray-plugin";

async setupNodeEvents(on, config) {
await configureXrayPlugin(
on,
config,
{
jira: {
url: "https://example.org",
projectKey: "ABC"
}
}
);
}
```
</td>
</tr>
</tbody>
</table>

- Removed `openSSL` options:

<table>
<thead>
<tr>
<th>
<pre>6.0.0</pre>
</th>
<th>
<pre>7.0.0</pre>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>

```ts
// cypress.config.js
import { configureXrayPlugin } from "cypress-xray-plugin";
import { constants } from "node:crypto";

async setupNodeEvents(on, config) {
await configureXrayPlugin(
config,
{
openSSL: {
rootCAPath: "/home/somewhere/cert.pem",
secureOptions: constants.SSL_OP_LEGACY_SERVER_CONNECT
}
}
);
}
```
</td>
<td>

```ts
// cypress.config.js
import { configureXrayPlugin } from "cypress-xray-plugin";
import { constants } from "node:crypto";
import { Agent } from "node:https";

async setupNodeEvents(on, config) {
await configureXrayPlugin(
on,
config,
{
http: {
httpAgent: new Agent({
ca: "/home/somewhere/cert.pem",
secureOptions: constants.SSL_OP_LEGACY_SERVER_CONNECT,
}),
}
}
);
}
```
</td>
</tr>
</tbody>
</table>

## Notable changes

- Added `xray.uploadRequests` option ([#324](https://github.com/Qytera-Gmbh/cypress-xray-plugin/pull/324))

- Added `http` options ([#322](https://github.com/Qytera-Gmbh/cypress-xray-plugin/pull/322))

## Dependency updates

- Bump @cucumber/gherkin from 27.0.0 to 28.0.0

- Bump @cucumber/messages from 24.0.0 to 24.1.0

- Bump axios from 1.6.2 to 1.6.8

- Bump semver from 7.5.4 to 7.6.0

- Bump @badeball/cypress-cucumber-preprocessor from 19.2.0 to 20.0.3

# `6.0.0`

> [!NOTE]
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cypress-xray-plugin",
"version": "6.0.0",
"version": "7.0.0",
"description": "A Cypress plugin for uploading test results to Xray (test management for Jira)",
"types": "index.d.ts",
"author": "csvtuda",
Expand Down

0 comments on commit 7d8ce9e

Please sign in to comment.