https://github.com/devonchurch/banana-cake
A Cypress POC
https://github.com/devonchurch/banana-cake
aws aws-codebuild aws-codepipeline aws-parameter-store aws-s3 ci-cd cypress-io
Last synced: 15 days ago
JSON representation
A Cypress POC
- Host: GitHub
- URL: https://github.com/devonchurch/banana-cake
- Owner: devonChurch
- Created: 2018-09-02T00:06:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-09T02:52:38.000Z (over 7 years ago)
- Last Synced: 2025-02-02T08:29:47.612Z (over 1 year ago)
- Topics: aws, aws-codebuild, aws-codepipeline, aws-parameter-store, aws-s3, ci-cd, cypress-io
- Language: JavaScript
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Banana Cake
An investigation into how [Cypress](https://www.cypress.io/) compares to [Puppeteer](https://developers.google.com/web/tools/puppeteer/) around **Integration** and **End-to-End** testing.
I chose to mimic a [previously created](https://github.com/devonChurch/kettle-corn/blob/master/README.md#end-to-end-tests) _Puppeteer_ implementation of mine in the _Cypress_ ecosystem.
## Infrastructure
Ingestion into AWS [CodePipeline](https://aws.amazon.com/codepipeline/) / [CodeBuild](https://aws.amazon.com/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.

## Installation
- Clone this repository
```
$ git clone https://github.com/devonChurch/banana-cake.git
$ cd ./banana-cake
```
- Install project dependancies
```
$ nvm use
$ npm install
```
- Open the [Cypress GUI](https://docs.cypress.io/guides/getting-started/testing-your-app.html#Step-2-Visit-Your-Server) for an interactive development experience.
```
$ npm start
```

## Test
- Run all _Cypress_ tests _(good when verification with [git hooks](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks))_.
```
$ npm test
```

## Deploy
- Deploy package to [AWS S3](https://aws.amazon.com/s3/) for reference when running the _CodeBuild_ **CI / CD** sequence.
```
$ npm run deploy
```