All Projects → briebug → Cypress Schematic

briebug / Cypress Schematic

Licence: mit
Add cypress to an Angular CLI project

Projects that are alternatives of or similar to Cypress Schematic

Sorry Cypress
An open-source, on-premise, self-hosted alternative to Cypress Dashboard
Stars: ✭ 1,005 (+661.36%)
Mutual labels:  hacktoberfest, e2e-tests
Cli Prompts Test
Write e2e tests for CLI apps with ease
Stars: ✭ 17 (-87.12%)
Mutual labels:  hacktoberfest, e2e-tests
Codeceptjs
Supercharged End 2 End Testing Framework for NodeJS
Stars: ✭ 3,592 (+2621.21%)
Mutual labels:  hacktoberfest, e2e-tests
Nextjs Headless Wordpress
🔥 Nextjs Headless WordPress
Stars: ✭ 110 (-16.67%)
Mutual labels:  hacktoberfest, e2e-tests
Erxes
Free and open fair-code licensed all-in-one growth marketing & management software
Stars: ✭ 1,988 (+1406.06%)
Mutual labels:  hacktoberfest
Predictive Horizontal Pod Autoscaler
Horizontal Pod Autoscaler built with predictive abilities using statistical models
Stars: ✭ 132 (+0%)
Mutual labels:  hacktoberfest
Email Outlook Message Perl
Email::Outlook::Message Perl module for reading Outlook .msg files
Stars: ✭ 131 (-0.76%)
Mutual labels:  hacktoberfest
Umodbus
Python implementation of the Modbus protocol.
Stars: ✭ 129 (-2.27%)
Mutual labels:  hacktoberfest
Silverstripe Userforms
UserForms module provides a visual form builder for the SilverStripe CMS. No coding required to build forms such as contact pages.
Stars: ✭ 132 (+0%)
Mutual labels:  hacktoberfest
Wopihost
ASP.NET Core MVC implementation of the WOPI protocol. Enables integration with WOPI clients such as Office Online Server.
Stars: ✭ 132 (+0%)
Mutual labels:  hacktoberfest
Fabric Samples
wiki.hyperledger.org/display/fabric
Stars: ✭ 1,980 (+1400%)
Mutual labels:  hacktoberfest
V by example
Learn V by Example
Stars: ✭ 131 (-0.76%)
Mutual labels:  hacktoberfest
Conftest
Write tests against structured configuration data using the Open Policy Agent Rego query language
Stars: ✭ 2,047 (+1450.76%)
Mutual labels:  hacktoberfest
Blizzard Jailbreak
An Open-Source iOS 11.0 -> 11.4.1 (soon iOS 13) Jailbreak, made for teaching purposes.
Stars: ✭ 130 (-1.52%)
Mutual labels:  hacktoberfest
Terasologylauncher
Terasology Launcher is the official launcher for the open source game Terasology.
Stars: ✭ 132 (+0%)
Mutual labels:  hacktoberfest
Simplebluetoothlibrary
Android library for simplifying bluetooth usage.
Stars: ✭ 131 (-0.76%)
Mutual labels:  hacktoberfest
Mentorship Backend
Mentorship System is an application that matches women in tech to mentor each other, on career development, through 1:1 relations during a certain period of time. This is the backend of this system.
Stars: ✭ 132 (+0%)
Mutual labels:  hacktoberfest
Sea
rpc framework built on grpc
Stars: ✭ 132 (+0%)
Mutual labels:  hacktoberfest
Rawcms
RawCMS is the headless CMS written in asp.net core build for developers that embraces API first technology. Please give us a feedback!
Stars: ✭ 132 (+0%)
Mutual labels:  hacktoberfest
Pesy
Project configuration for esy
Stars: ✭ 132 (+0%)
Mutual labels:  hacktoberfest

Cypress Angular Schematic

npm (scoped) Downloads

Cypress Schematic Logo

Add Cypress to an Angular CLI project

This schematic will:

  • install Cypress, its dependencies, and new scripts
  • add necessary files for Cypress to work with Angular & Typescript
  • prompt for removal of Protractor files and configuration

Usage 🚀

Run as one command in an Angular CLI app directory. Note this will add the schematic as a dependency to your project.

ng add @briebug/cypress-schematic

With the custom builder installed, you can run cypress with the following commands:

ng e2e
ng run {your-project-name}:cypress-open

These two commands do the same thing. They will launch the (Electron) Cypress Test Runner in watch mode.

ng run {your-project-name}:cypress-run

This command will open the (Electron) Cypress Test Runner and run your tests one time, with output to your terminal.

Options

Option Description
addCypressTestScripts This will add Cypress open and run command scripts to your package.json. Include --addCypressTestScripts in your ng add command.
noBuilder This will skip the builder addition, leaving the angular.json file unmodified and requiring you to run Cypress from the command line or through your IDE. Include --noBuilder in your ng add command.

Issues

Issues with this schematic can be filed here.

If you want to contribute (or have contributed in the past), feel free to add yourself to the list of contributors in the package.json before you open a PR!

Development 🛠

Getting started

Node.js and npm are required for the scripts. Make sure it's installed on your machine.

Install the dependencies for the schematic and the sandbox application

npm i && cd sandbox && npm i && cd ..

🖇 Link the schematic in the sandbox to run locally

npm run link:sandbox

🏃 Run the schematic

npm run build:clean:launch

E2E testing

Execute the schematic against the sandbox. Then run linting, unit & e2e tests and a prod build in the sandbox.

npm run test

Unit Testing

Run the unit tests using Jasmine as a runner and test framework.

npm run test:unit

Reset the sandbox

Running the schematic locally makes file system changes. The sandbox is version controlled so that viewing a diff of the changes is trivial. After the schematic has run locally, reset the sandbox with the following.

npm run clean
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].