open-index/open-npm huggingface dataset:
npm package: @saucelabs/cucumber-reporter
Description: Reports your tests to Sauce Labs
Author: devx
Latest version: 1.2.0

# sauce-cucumber-reporter

This Cucumber plugin reports each project to your Sauce Labs account.

## Installation

Install from npm:

```sh
npm install @saucelabs/cucumber-reporter
```

### Sauce Labs Credentials

Set the `SAUCE_USERNAME` and `SAUCE_ACCESS_KEY` environment variables to enable the plugin to report your results to Sauce Labs. Your Sauce Labs Username and Access Key can be found in your [dashboard](https://app.saucelabs.com/user-settings).

## Usage

Add to your Cucumber formatter:

```sh
npx cucumber-js --format=@saucelabs/cucumber-reporter
```

Alternatively, configure it using `cucumber.json` by adding `'@saucelabs/cucumber-reporter'` to the reporter section of your configuration:

```json
{
  "default": {
    "requireModule": ["ts-node/register"],
    "format": "@saucelabs/cucumber-reporter"
  }
}
```

### Plugin Configuration

Configure the `@saucelabs/cucumber-reporter` through your Cucumber config file.

Example `cucumber.json`:

```json
{
  "default": {
    "requireModule": ["ts-node/register"],
    "format": "@saucelabs/cucumber-reporter",
    "formatOptions": {
      "name": "my cucumber test",
      "build": "mybuild",
      "tags": ["demo", "e2e", "cucumber"],
      "region": "eu-central-1"
    }
  }
}
```

Configuration Parameters:

| Name          | Description                                                                       | Type       |
| ------------- | --------------------------------------------------------------------------------- | ---------- |
| `browserName` | Sets the browser name.                                                            | `String`   |
| `build`       | Sets a build ID. Default: `''`.                                                   | `String`   |
| `tags`        | Tags to add to the uploaded Sauce job. Default: `[]`.                             | `String[]` |
| `region`      | Sets the region. Default: `us-west-1`.                                            | `String`   |
| `upload`      | Whether to upload report and assets to Sauce. Default: `true`.                    | `boolean`  |
| `outputFile`  | The local path to write the sauce test report. Default: `sauce-test-report.json`. | `String`   |
| `name`        | Sets the job name. Default: `Unnamed job ${job_id}`.                              | `String`   |
npm package: @saucelabs/cypress-junit-plugin
Description: Sauce Cypress JUnit Plugin
Author: devx
Latest version: 0.3.0

# @saucelabs/cypress-junit-plugin

`@saucelabs/cypress-junit-plugin` is a third-party plugin designed to enhance your Cypress testing workflow by generating comprehensive JUnit test reports.

Please be aware that this plugin is not an official product of Sauce Labs.

## Unique Features

Unlike Cypress' built-in [junit reporter](https://docs.cypress.io/guides/tooling/reporters), this plugin generates a single, consolidated JUnit file for the entire test run, rather than individual files per spec that then need to be merged.

## Prerequisites

**Cypress Version**: This plugin is compatible with Cypress version 13 and above. Make sure your project is updated to meet this version requirement.

## Installation

To install the plugin, run the following command in your project directory:

```bash
npm install @saucelabs/cypress-junit-plugin --save-dev
```

## Configuration

After installation, configure the plugin to work with your Cypress setup.

### `cypress.config.mjs` Example:

```javascript
import { defineConfig } from 'cypress';
import { setupJUnitPlugin } from '@saucelabs/cypress-junit-plugin';

export default defineConfig({
  e2e: {
    setupNodeEvents(on, config) {
      setupJUnitPlugin(on, config, { filename: "path/to/my_junit.xml" });
      return config;
    }
  },
});
```

### `cypress.config.cjs` Example:

```javascript
const { defineConfig } = require('cypress');
const { setupJUnitPlugin } = require('@saucelabs/cypress-junit-plugin');

module.exports = defineConfig({
  e2e: {
    setupNodeEvents(on, config) {
      setupJUnitPlugin(on, config, { filename: 'path/to/my_junit.xml' });
      return config;
    },
  },
});
```

## Usage

Simply run your Cypress tests as usual. The plugin will automatically generate a JUnit report at the specified location (default: `junit.xml`) after the test run is complete.

```bash
cypress run
```

## API Usage

If you are using the Cypress module API, you can pass the Cypress results to the plugin directly:

```javascript
const cypress = require('cypress')
const {createJUnitReport} = require('@saucelabs/cypress-junit-plugin')

cypress.run({
  reporter: 'spec',
  browser: 'chrome',
}).then(r => {
  createJUnitReport(r, { filename: 'path/to/my_junit.xml' });
})
```

## Contributing

Contributions to the `@saucelabs/cypress-junit-plugin` are welcome! Check out our contributing guidelines for more information on how to participate.

## Support

If you run into any issues or have questions about the plugin, feel free to open an issue on our GitHub repository.

## License

This plugin is released under the [MIT License](LICENSE).
npm package: @saucelabs/cypress-visual-plugin
Description: Cypress plugin for Sauce Visual Testing
Latest version: 0.10.0

# Sauce Labs Visual for Cypress

This package is Sauce Labs Visual integration for Cypress.

It comes as both a plugin and commands that will be made available for your tests.

## Installation & Usage

View installation and usage instructions on the [Sauce Docs website](https://docs.saucelabs.com/visual-testing/integrations/cypress/).

## Building

Install the dependencies

```sh
npm install
```

Build [Sauce Labs Visual client library](../visual/) since Sauce Labs Visual for Cypress depends on it

```sh
npm --prefix ../visual run build
```

Finally build Sauce Labs Visual for Cypress

```sh
npm run build
```

## Linting

```sh
npm run lint
```

## Running the tests

```sh
npm run test
```
npm package: @saucelabs/nightwatch-sauce-visual-service
Description: Nightwatch service that add visual checks capabilities using Sauce Labs Visual
Latest version: 0.14.0

# Sauce Labs Visual for Nightwatch

This package is Sauce Labs Visual integration for Nightwatch.

It comes as a service that you can add to your existing Nightwatch project.

## Installation & Usage

View installation and usage instructions on the [Sauce Docs website](https://docs.saucelabs.com/visual-testing/integrations/nightwatch/).

## Building

Install the dependencies

```sh
npm install
```

Build [Sauce Labs Visual client library](../visual/) since Sauce Labs Visual for Nightwatch depends on it

```sh
npm --prefix ../visual run build
```

Finally build Sauce Labs Visual for Nightwatch

```sh
npm run build
```

## Linting

```sh
npm run lint
```