Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

End-to-end testing for a RealWorld React/NodeJS stack using Mocha and Chrome Puppeteer

License

Notifications You must be signed in to change notification settings

gitknul/realworld-e2e-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RealWorld End-to-End Integration Testing

An end-to-end integration test example for a (ABP) React application.

Demonstrates spinning up both the frontend (React/Redux) and backend (NodeJS) stacks for the RealWorld Conduit webapp, and then using Mocha to drive a headless Chrome via Puppeteer.

Designed to work with CircleCI and Travis CI.

Cross-browser Testing Platform and Open Source <3 Provided by Sauce Labs

Getting Started

Prerequisites

Docker CE 17+ (for Mongo)
Node 7+ (for Puppeteer)

Installing

Pull MongoDB image and run it

docker pull mongo
docker run -p 27017:27017 mongo

Install dependencies and start the app aka system under test (SUT)

npm install
npm run start

This step will start the backend server at port 3000 and frontend static server at port 4100. If all went well, you can navigate your browser to: http://localhost:4100/

Running the tests

npm test

asciicast

About

End-to-end testing for a RealWorld React/NodeJS stack using Mocha and Chrome Puppeteer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 70.4%
  • Shell 29.6%