Skip to content

rolu315/cypressTesting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cypress Testing

This repository houses my implementation of Cypress for end-to-end testing.

Table of Contents

Overview

This project is designed to demonstrate the use of Cypress for end-to-end testing in a TypeScript environment. Cypress is a powerful tool for writing reliable, robust, and fast tests for anything that runs in a browser.

Installation

To install the necessary dependencies, run:

npm install

Usage

To open the Cypress Test Runner, use the following command:

npx cypress open

For running tests in headless mode, use:

npx cypress run

Running Tests

Tests are located in the cypress/e2e directory. You can run specific tests by specifying the file:

npx cypress run --spec cypress/e2e/login.cy.ts

Project Structure

cypress/fixtures

Contains test data files.

cypress/e2e

Contains end-to-end test files, such as login.cy.ts.

cypress/plugins

Contains custom plugins for Cypress.

cypress/support

Contains support files and custom commands.

cypress.config.ts

Contains the Cypress configuration.

results

Directory where test results will be stored.

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes.

License

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



About

This repository houses my implementation of Cypress for end-to-end testing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published