项目作者: devonChurch

项目描述 :
A Cypress POC
高级语言: JavaScript
项目地址: git://github.com/devonChurch/banana-cake.git
创建时间: 2018-09-02T00:06:38Z
项目社区:https://github.com/devonChurch/banana-cake

开源协议:

下载


Banana Cake

An investigation into how Cypress compares to Puppeteer around Integration and End-to-End testing.

I chose to mimic a previously created Puppeteer implementation of mine in the Cypress ecosystem.

Infrastructure

Ingestion into AWS CodePipeline / CodeBuild was a necessity as well as the ability to work on this repository independently and slot in where required as part of the existing CI / CD system.

banana-cake

Installation

  • Clone this repository

    1. $ git clone https://github.com/devonChurch/banana-cake.git
    2. $ cd ./banana-cake
  • Install project dependancies

    1. $ nvm use
    2. $ npm install
  • Open the Cypress GUI for an interactive development experience.

    1. $ npm start

    cypress-start

Test

  • Run all Cypress tests (good when verification with git hooks).

    1. $ npm test

    cypress-test

Deploy

  • Deploy package to AWS S3 for reference when running the CodeBuild CI / CD sequence.

    1. $ npm run deploy