Giter Club home page Giter Club logo

no-record-video-test-passed-cypress-plugin's Introduction

noRecordVideoTestPassed

The noRecordVideoTestPassed Cypress plugin allows for not recording videos of tests that pass. This can help save storage space used by test videos by only keeping videos of failed tests.

Installation

To use noRecordVideoTestPassed, start by installing it as a development dependency in your Cypress project:

npm install no-record-video-test-passed-cypress-plugin --save-dev

or if you're using Yarn:

yarn add no-record-video-test-passed-cypress-plugin --dev

Configuration

After installation, you need to configure the plugin in your Cypress project.

  1. Open the cypress/plugins/index.js file and add the following code:
const {
  noRecordVideoTestPassedPlugin,
} = require("no-record-video-test-passed-cypress-plugin/src");

module.exports = (on, config) => {
  noRecordVideoTestPassedPlugin(on, config);
};
  1. Then, configure the plugin in your cypress.config.js file (or whichever configuration file you are using) to enable or disable the feature:
const { defineConfig } = require("cypress");

module.exports = defineConfig({
  env: {
    noRecordVideoTestPassed: {
      enable: true,
    },
  },
  // Your other Cypress configurations...
});

Make sure to replace "enable": true with false if you wish to temporarily disable the deletion of videos for passed tests.

Usage

Once installed and configured, the plugin will work automatically. No further action is required. Videos for tests that pass will not be saved, according to your configuration.

Configuration Options

Currently, the plugin supports the following configuration:

  • enable: A boolean (true | false) to enable or disable the deletion of videos for tests that pass.

Support and Contributions

For support, questions, or suggestions, please open an issue in the plugin's GitHub repository.

Contributions to the project are welcome! If you would like to contribute, please read the contribution guidelines provided in the GitHub repository of the plugin.

License

This project is licensed under the MIT License. For more details, see the LICENSE file in the GitHub repository of the plugin.


This README.md provides a basic guide for installing, configuring, and using your noRecordVideoTestPassed Cypress plugin. You can adjust it based on the specifics of your plugin and the needs of your project.

no-record-video-test-passed-cypress-plugin's People

Contributors

devstored avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.