Giter VIP home page Giter VIP logo

netlify-plugin-prebuild-example's Introduction

netlify-plugin-prebuild-example Netlify Status renovate-app badge CircleCI

An example site built and tested on Netlify before and after build step using netlify-plugin-cypress

This starter demonstrates advanced Cypress configuration options in the netlify.toml. Most users can use the other starter, which has simplified configuration options: netlify-plugin-cypress-example.

Created from gatsby-starter-default starter template

One-click Deployment

Click this button to fork this repository and deploy it on Netlify Deploy to Netlify

Plugin Configuration Options

See netlify.toml

View Results

Find recorded test results and artifacts at Cypress Dashboard. We have enabled Cypress GitHub App to show checks per group for each pull request. Notice the checks coming from Netlify's build below (this is pull request #8)

Netlify to Cypress Dashboard to GH Integration checks

Debugging

Locally

DEBUG=netlify-plugin-cypress npx netlify build

netlify-plugin-prebuild-example's People

Contributors

bahmutov avatar jessicasachs avatar renovate-bot avatar renovate[bot] avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

netlify-plugin-prebuild-example's Issues

setup CI

using netlify-plugin-cypress-example

Can't run on preBuild - http://localhost:8888 timed out on retry 31 of 1

I've tried both gatsby develop with localhost:8000 and netlify dev with localhost:8888, cypress isn't able to connect with either during my pipeline. What am I doing wrong here? Preferrably I would like to use the netlify dev configuration:

[[plugins]]
  # runs Cypress tests against the deployed URL
  package = "netlify-plugin-cypress"
  # let's first test the site before Gatsby builds it
  [plugins.inputs.preBuild]
    enable = true
    start = 'netlify dev'
    wait-on = 'http://localhost:8888'
    wait-on-timeout = '30' # seconds
    record = true
    group = '1: testing develop site'

  # then Netlify builds the site
  # and then our tests will run again, testing the built production version
  [plugins.inputs.postBuild]
    # investigating why preBuild server has not been stopped
    # https://github.com/cypress-io/netlify-plugin-cypress/issues/119
    enable = true
    record = true
    group = '2: testing built site'

  # do not test the deployed URL
  [plugins.inputs]
    enable = false

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.