Giter Club home page Giter Club logo

synthetic-cypress's Introduction

Synthetic Cypress

Synthetic monitoring is a monitoring technique that is done by using an emulation or scripted recordings of transactions Wikipedia article

This repo is a starter template to get you running Cypress tests continuously against one of your environments.

Run with npm start which starts a service on port 3000. You can play with the Cypress tests directly via npm run cy:open

What does this do?

It runs a Cypress test suite, waits for 5 minutes then runs it again and records the results to http://localhost:3000

If you visit that URL it will give you links to other options such as:

  • Videos of each test run
  • An easy to read status page (generated with Mochawesome)
  • A JSON API endpoint for querying the existing state
  • Prometheus endpoints for monitoring results, which could be consumed via Grafana

Environment Variables

You can configure how the server runs:

  • SLEEP_MINS: How long to wait in minutes between a test run finishing before starting a new run (default: 5 minutes)
  • SPECS_REGEX: Select which specs to run (default all: "/cypress/integration/*-spec.js")
  • PORT: What HTTP port to run the server on (default: 3000)

Running with Docker

If you'd prefer not to install node, you can use the supplied Dockerfile to run inside Docker with.

docker build -t synthetic-cypress .
docker run -p 3000:3000 synthetic-cypress

synthetic-cypress's People

Contributors

joejag avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.