Giter Site home page Giter Site logo

cypress-example-conduit-app's Introduction

๐Ÿšฉ Looking for another real-world demonstration of Cypress in action? Check out the Cypress Real World App repository.

Conduit App renovate-app badge CircleCI Coverage Status Cypress.io Test Dashboard

Fork of applitools/cypress-applitools-webinar which is a fork of gothinkster/realworld "Conduit" blogging application.

Application

Tests

The tests are in cypress/integration folder

Full code coverage

Front- and back-end coverage for this application is collected using the @cypress/code-coverage plugin. You can run the locally instrumented server and client using npm run dev:coverage command. The backend coverage is exposed in server/server/index.js via endpoint listed in cypress.json (usually GET /__coverage). The frontend coverage is collected by instrumenting the web application source code on the fly, see the client/.babelrc file.

The combined report is saved in coverage/index.html after the tests finish:

Example full coverage report

The coverage is sent to Coveralls.io using command npm run coveralls from CircleCI AFTER partial coverage information from parallel E2E test runs is combined, see circle.yml file.

Combining code coverage from parallel runs

If you do not use an external code coverage service for combining code coverage reports, you need to combine those reports yourself like this repository is showing in circle.yml file. Several E2E cypress/run jobs run in parallel, each job saving its own coverage report folder. Then every job copies the report (using save-partial-coverage-report command) into a unique folder to avoid overwriting via reports from other machines. When all E2E jobs are finished, and reports are copied together, then the CI calls a command to merge the reports (see the merge-coverage-reports command that uses nyc merge tool).

To learn more, read the Cypress code coverage guide.

Requires Python 2.7 for node-gyp to be compiled.

cypress-example-conduit-app's People

Contributors

amirrustam avatar bahmutov avatar chrisbreiding avatar emilyrohrbough avatar flotwig avatar giltayar avatar mjhenkes avatar renovate-bot avatar renovate[bot] avatar ryanthemanuel 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  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  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  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

cypress-example-conduit-app's Issues

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

Potential error in merging code coverage

While trying to split some specs in PR

I have noticed that the coverage fell but then went back up without any code changes. Compare

Coverage 93.95% run https://circleci.com/gh/cypress-io/cypress-example-realworld/374#artifacts/containers/0 report https://374-193011024-gh.circle-artifacts.com/0/root/project/coverage/lcov-report/index.html

and then next run with exactly the same specs

Coverage 95.2% build https://377-193011024-gh.circle-artifacts.com/0/root/project/coverage/lcov-report/index.html report https://circleci.com/gh/cypress-io/cypress-example-realworld/377#artifacts/containers/0

Hmm, maybe the merge does not merge files if they are not created? Maybe related to #54

Need help for server request error.

hello,
I've cloned this repo & installed all the dependencies on the client, server directories. For running servers, I run commands npm start in both client & server. But whenever I'm running any cypress tests or doing signup/login in http://localhost:4100/. I'm getting this error: Debug: request, error, close on the server directory. Both servers http://localhost:3000, http://localhost:4100/ ran during the test & Please also see the screenshot for better understanding. Do I have to do any other steps or tasks for the server to works? Also, do I need to do any database setup/configuration for this?
Thanks in advance.

Screenshot 2021-08-07 at 3 09 43 AM

Show how to test duplicate article title support

In file /server/lib/models/article.js we have a missed branch that creates a slug for an article - if there is an article with the same title, then the API adds a random 6 string suffix.

Screen Shot 2019-08-06 at 3 58 17 PM

it would be very nice to show how to test this using the code coverage as a guide

  • API test seems the simplest, yet does not verify that the user interface handles the returned slug. Maybe it goes to the original article slug even when it should go to the second article?!
  • E2E test seems ideal
    • create both articles via UI
    • confirm first slug
    • confirm the second slug
    • create first article via API call, then create the second article via UI

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: Preset name not found within published preset config (monorepo:babel6). Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Create post API failing

When I try to create a new post from the UI, it is failing. Below is the snapshot from the console which indicates a 404 error on the POST request. Does anyone have a clue about this?

image

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.