Giter VIP home page Giter VIP logo

oslabs-beta / cydekick Goto Github PK

View Code? Open in Web Editor NEW
31.0 4.0 1.0 697 KB

Unlock the complete capabilities of your React applications using Cydekick, the intuitive Cypress test code generator. Seamlessly visualize component hierarchies, interact with your UI effortlessly, and generate precise test scripts. Immerse yourself in a hassle-free testing experience crafted for the modern developer.

Home Page: https://cydekick.dev/#home

License: MIT License

TypeScript 98.24% CSS 0.08% HTML 0.13% JavaScript 1.55%
component-testing cypress electron-app react

cydekick's Introduction

image

Cydekick.com

Cydekick is a Cypress test code generator designed for React applications. It enables you to visualize the component hierarchy of your React application, interact with your application in real-time, and seamlessly generate test code.

Table of Contents

Interface & Features

Overview: Upon launching Cydekick, users are presented with an intuitive interface designed to simplify Cypress testing for React applications. The main features include:

  1. Visual Component Hierarchy:

    • Navigate through the component hierarchy using React Flow, providing a visual representation of your React application's structure.
  2. Highlight Components:

    • Click on a component to reveal its HTML structure, allowing users to inspect and interact with individual components.
  3. Generate Test Code:

    • Seamlessly generate Cypress test code by providing text for "describe" and "it" blocks, along with selecting Cypress commands for testing.
  4. Preview and Save:

    • Preview and save the generated test code in a separate file, giving users the flexibility to edit and download the code at their convenience.

Prerequisites

To use Cydekick, you will need to:

  • Install Cypress in your application.
  • Add your own "data-cy" IDs to elements you wish to test on your app.
  • Run your application concurrently.

Installation

Follow these steps to install Cydekick:

  1. Download the latest version of Cydekick from HERE.
  2. Choose the version that matches your operating system: Mac, Windows, or Linux.
  3. Unzip the file onto your Computer and proceed to the next steps below.

Usage

To use Cydekick effectively, follow these steps:

  1. Launch Cydekick.

  2. Input the files of your React application and the URL where it's hosted.

    DemoGif1

  3. Explore the component hierarchy using React Flow and select the component of your application that you want to test.

    DemoGif2

  4. Generate test code by providing text for "describe" and "it" blocks, and selecting Cypress commands.

    DemoGif3

  5. Ensure you add the statement to the editor by clicking the "end statement" button.

  6. Complete the "describe" block and click "preview" at the top right to view your test file.

  7. Congratulations on your first test code; You're free to edit, preview, or save the generated code.

    DemoGif4

Contributing

We've launched Cydekick as a valuable tool to streamline Cypress testing for users. We plan to introduce more features, extensions, and enhancements to make Cypress testing even more efficient. We appreciate any contributions from the community and encourage you to give Cydekick a try. Feel free to suggest improvements or report any issues you encounter using the application. Your interest and involvement are highly valued!

For Future Iterations

  • Currently, the Cypress commands are not compatible with anonymous functions.
  • The commands do not support an "options" object parameter.
  • The commands only support strings and numbers.
  • There is a limited number of command options.

Support

Encounter issues or have suggestions? Please feel free to message the creators down below.

License Information

Cydekick is licensed under the MIT License. See the LICENSE file for details.

The Cydekick Team

Developed by:

cydekick's People

Contributors

jacobsasser avatar prrrrreston avatar quinncraddock4 avatar sidsaxena27 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

jacobsasser

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.