Giter Site home page Giter Site logo

cypress-test-example-repos's Introduction

cypress-test-example-repos's People

Contributors

bahmutov avatar brian-mann avatar flotwig avatar jennifer-shehane avatar renovate-bot avatar renovate[bot] avatar tgriesser avatar

Stargazers

 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

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  avatar  avatar  avatar  avatar  avatar

cypress-test-example-repos's Issues

When testing switch to the branch depending on the version

Imagine we are testing version 1.2.0 and it has breaking changes. Then some of the projects like cypress-example-recipes would have a branch named 1.2.0 already.

Thus when we get a commit message, and extract binary / npm path, we should also extract the version we are testing like 1.2.0, then for each repo see if we can switch to the branch 1.2.0. Then run the tests. If the branch does not exist, no big deal - just run the tests in the default branch.

ESlint settings can interfere with settings in each repo

For example when testing cypress-svelte-unit-test the prettier-standard tool seems to read eslint settings from the root (this repo) when doing its thing, leading to a crash. This crash never happens when testing that repo by itself.

$ npm run pretty

> [email protected] pretty /Users/gleb/git/cypress-test-example-repos/cypress-svelte-unit-test
> prettier-standard 'src/*.js'

prettier-eslint [ERROR]: There was trouble creating the ESLint CLIEngine. Is "eslintPath: /Users/gleb/git/cypress-test-example-repos/cypress-svelte-unit-test/node_modules/eslint" a correct path to the ESLint module?
prettier-standard [ERROR]: There was an error formatting "src/index.js": 
    Error: CLI:
    	Configuration for rule "eqeqeq" is invalid:
    	Value "allow-null,[object Object]" no schemas match.

        at Object.validateRuleOptions (/Users/gleb/git/cypress-test-example-repos/cypress-svelte-unit-test/node_modules/eslint/lib/config/config-validator.js:109:15)
        at CLIEngine.Object.keys.forEach.name (/Users/gleb/git/cypress-test-example-repos/cypress-svelte-unit-test/node_modules/eslint/lib/cli-engine.js:476:19)
        at Array.forEach (<anonymous>)

CI https://circleci.com/gh/cypress-io/cypress-test-example-repos/6678

Should clone repo into temp folder, not into a subfolder

NPM install sometimes fails on AppVeyor

Some of the AppVeyor builds seem to break on npm install step

Screen Shot 2019-07-16 at 9 24 51 AM

For example, the build https://ci.appveyor.com/project/cypress-io/cypress-test-example-repos/builds/26007256

Author: Renovate Bot <[email protected]>
Date:   Mon Jul 15 05:20:32 2019 +0000
    chore(deps): update to ๐ŸŒŸ
rm -rf .git
npm WARN tarball tarball data for [email protected] (sha512-7KxJovlYhTX5RaRbUdkAXN1KUZ8PwWlTzQdHV6xNqvuFOs7+WBo10TQUqT19Q/Jz2hk5v9TQDIhyLhhJY4p5AA==) seems to be corrupted. Trying one more time.
npm ERR! path C:\Users\appveyor\AppData\Local\Temp\1\cypress-example-kitchensink4o2Ay1\node_modules\.staging\typescript-656bcbc4\lib\typescriptServices.js
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\appveyor\AppData\Local\Temp\1\cypress-example-kitchensink4o2Ay1\node_modules\.staging\typescript-656bcbc4\lib\typescriptServices.js'
npm ERR!  { Error: EPERM: operation not permitted, unlink 'C:\Users\appveyor\AppData\Local\Temp\1\cypress-example-kitchensink4o2Ay1\node_modules\.staging\typescript-656bcbc4\lib\typescriptServices.js'
npm ERR!   cause: 
npm ERR!

Maybe we can retry the npm install command

Bad commit object sha

Seeing for projects that use commit-message-install the following

#!/bin/bash -eo pipefail
$(npm bin)/commit-message-install
last commit: f68174c5383af5df6453dbad1bf54aac339f6dad
fatal: bad object f68174c5383af5df6453dbad1bf54aac339f6dad

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.


  • Check this box to trigger a request for Renovate to run again on this repository

Travis-CI + Cypress Issues connecting to site being served using http-server

I have a quick question regarding running Cypress Tests within a CI/CD Pipeline on Travis-CI. I'm currently not able to run my tests as a result of the following error.

'Error: connect ECONNREFUSED'

I'm trying to serve the simple web page I'm trying to test via http-server (https://www.npmjs.com/package/http-server). I've included my travis yaml file below. I'd greatly appreciate any assistance you can provide.

Inside of my test, I'm trying to navigate to the web page using
cy.visit('http://0.0.0.0:1111') and cy.visit('http://localhost:1111') with no luck :(

.travis.yml

language: node_js
node_js:
  - 6
cache:
  directories:
    - ~/.npm
    - node_modules
install:
  - yarn
script:
  - http-server -p 1111 . > http.log 2>&1 &
  - $(npm bin)/cypress run

Run more example recipes as a test

Bugs in release Cypress v3.5.0 could have been stopped if we ran all cypress-example-recipes against the develop branch (in particular single sign on recipe). Find a way to parallelize the test jobs, probably by running recipes in N jobs with "--chunk" parameter

Find a way to pass group id

Currently we call a command on recipes like this

npm run test:ci

Which in turn calls run-p command

"test:ci": "run-p --race start cypress:run"

Problem - we cannot pass additional CLI arguments. For example npm run test:ci -- --group-id 1 breaks because it calls run-p --race start cypress:run --group-id 1 - which causes run-p to report "unknown option" :(

Need to switch to Node 8

  • Cypress itself is Node 8
  • Some test projects like cypress-hyperapp-unit-test require build step and parcel-bundler needs 8+

Need to collect artifacts

Because we are testing so many things, if something fails we have no idea why. Like this example https://circleci.com/gh/cypress-io/cypress-test-example-repos/3575#tests/containers/0

It has failed but we do not see the image or video.

  (Screenshots)

  - /home/person/app/cypress-example-recipes/examples/blogs__codepen-demo/cypress/screenshots/HyperApp Counter Codepen -- starts with zero -- before each hook loadAppIFrameAndSetAsOurTestDocument.png (1280x720)


  (Video)

  - Started processing:   Compressing to 32 CRF
  - Finished processing:  /home/person/app/cypress-example-recipes/examples/blogs__codepen-demo/cypress/videos/1yh2u.mp4 (1 second)

Need to collect all generated artifacts after running tests, store on CI

Move Mac build from Buildkite to CircleCI

lets test cypress-example-kitchensink and cypress-example-todomvc projects only. We are still testing all projects on Linux

  • cypress-example-recipes became quite large to always keep testing against
  • cypress-example-phonecat and cypress-example-piechopper can be retired

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Allow testing repos outside cypress-io organization

To test against "guest" repos like "bahmutov/cypress-svelte-unit-test"

$ node ./test-repo.js --repo bahmutov/cypress-svelte-unit-test
set -e
testing url https://github.com/cypress-io/bahmutov/cypress-svelte-unit-test.git
using command test:ci
Cloning into 'cypress-svelte-unit-test'...
remote: Not Found
fatal: repository 'https://github.com/cypress-io/bahmutov/cypress-svelte-unit-test.git/' not found
null
~/git/cypress-test-example-repos on master*
$ echo $?
1

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.