oslabs-beta / trydent

Chrome DevTool that enables developers save time on end-to-end tests by autogenerating Cypress code

Home Page:https://trydent.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trydent

Banner

Trydent is a lightweight developer tool built from the ground up to automate the generation of Cypress test code, simplifying and streamlining the testing process for applications.

The primary purpose of Trydent is to help developers and quality assurance engineers easily generate Cypress test code, saving time and effort while ensuring comprehensive test coverage. With Trydent, you can create tests quickly, detect issues earlier in the development process, and maintain high-quality code standards.

React TypeScript Cypress Jest

Table of Contents

  1. Trydent
  2. Features
  3. Benefits
  4. Privacy Statement
  5. Installation
  6. Scripts
  7. File Structure
  8. Contributions
  9. Our Team
  10. License

Features

Trydent offers several key features that make it a valuable tool for test generation:

  1. Automated Cypress Test Code Generation: Trydent automatically generates Cypress test code for your web application, saving you time and effort
  2. Intuitive Developer Tool Interface: Trydent is a Developer Tool that can be utilized directly in your browser.
  3. Compatibility with Various Web Applications and Frameworks: Trydent is compatible with a wide range of web applications and frameworks, including React, Angular, Vue, and more.

Benefits

By using Trydent, developers can enjoy numerous benefits, such as:

  1. Increased Productivity: Trydent automates the generation of Cypress test code, cutting down time spent on creating E2E test by over 60%.
  2. Improved Test Coverage: Trydent helps developers ensure comprehensive test coverage for their application.
  3. Faster Development Cycles: Trydent helps developers detect issues earlier in the development process, so teams can quickly address problems and move on to the next stage.

Privacy Statement

Trydent logs user inputs during development for the purpose of creating end-to-end tests. The application does not extract or store any personal data from users. However, as a precaution, developers should avoid using sensitive information when genereating test code. This ensure that no sensitive data is inadvertently recorded or stored in the generated tests.

Installation

Please note that Trydent is not yet available on the Chrome Web Store.

  1. Ensure you have the required prerequisites installed:
  2. Fork the Trydent repository to your own GitHub account.
  3. Clone your forked repository to your local machine.
git clone https://github.com/<your-github-username>/trydent.git
  1. Navigate to the root project directory and install dependencies.
cd trydent
npm install
  1. Navigate to the client directory and install dependencies.
cd client
npm install
  1. Build the application in the client directory
npm run build
  1. Load Trydent into your Chrome extensions.
    • Open Google Chrome and navigate to chrome://extensions/
    • Enable Developer Mode
    • Click "Load unpacked" and select the extensions directory in your local 'trydent' repository.

Now you should be able to access Trydent in the developer tools or right-click and select Trydent.

Scripts

Below are descriptions of each npm script:

  • npm start: Starts the development server using Vite.
  • npm run build: Runs vite build to build your application for production. This command generates the final, optimized assets that can be deployed to a web server. Also runs the TypeScript compiler (tsc) to type-check the TypeScript files and convert to js files in extensions/bundle folder
  • npm run build:watch: Runs vite build on watch mode, monitoring for any changes and updating bundling on save.
  • npm run serve: Starts a local server to preview the production build. This is for testing the built assets before deploying. This should not be used as a production server.
  • npm test: Runs Jest tests

File Structure

.
├── LICENSE
├── README.md
├── __tests__
│   └── client
│       ├── components
│       │   └── pages
│       │       └── testCreator.test.js
│       └── utils
│           └── inputLogger.test.js
├── babel.config.js
├── client
│   ├── components
│   │   ├── App.tsx
│   │   ├── TopBar.tsx
│   │   └── pages
│   │       ├── CodeBlock.tsx
│   │       ├── TestPage.tsx
│   │       └── WelcomePage.tsx
│   ├── cypress
│   │   ├── e2e
│   │   │   └── tydent.cy.ts
│   │   └── support
│   │       ├── commands.ts
│   │       └── e2e.ts
│   ├── cypress.config.ts
│   ├── index.html
│   ├── main.tsx
│   ├── package-lock.json
│   ├── package.json
│   ├── scss
│   │   ├── CodeBlock.module.scss
│   │   ├── EventLogger.module.scss
│   │   ├── TestPage.scss
│   │   ├── TopBar.module.scss
│   │   ├── WelcomePage.module.scss
│   │   ├── _styles.scss
│   │   ├── _variables.scss
│   │   ├── application.scss
│   │   └── components
│   │       ├── buttons.scss
│   │       └── input.scss
│   ├── tsconfig.json
│   ├── tsconfig.node.json
│   ├── utils
│   │   ├── inputLogger.ts
│   │   ├── testCreator.ts
│   │   └── types
│   │       └── types.ts
│   └── vite.config.ts
├── extension
│   ├── background.js
│   ├── bundles
│   │   ├── components
│   │   │   ├── App.js
│   │   │   ├── TopBar.js
│   │   │   └── pages
│   │   │       ├── CodeBlock.js
│   │   │       ├── TestPage.js
│   │   │       └── WelcomePage.js
│   │   ├── cypress.config.js
│   │   ├── index.html
│   │   ├── main.js
│   │   ├── utils
│   │   │   ├── testCreator.js
│   │   │   └── types
│   │   │       └── types.js
│   │   └── vite.config.js
│   ├── content-script.js
│   ├── devtool.html
│   ├── devtools.js
│   ├── manifest.json
│   ├── panel.html
│   └── panel.js
├── package-lock.json
└── package.json

Contributions

We welcome contributions from the community. If you are interested in contributing to this project, please refer to our Contributing Guidelines for more information.

Our Team

Alastair Scheuermann
GitHub
LinkedIn
Eric Dunn
GitHub
LinkedIn
Jacob Gillan
GitHub
LinkedIn
Nicholas Ly
GitHub
LinkedIn
Samuel Lee
GitHub
LinkedIn

License

This project is licensed under the terms of the MIT LICENSE

About

Chrome DevTool that enables developers save time on end-to-end tests by autogenerating Cypress code

https://trydent.io/

License:MIT License


Languages

Language:TypeScript 45.7%Language:JavaScript 45.3%Language:SCSS 6.6%Language:HTML 2.4%