Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SocketCluster/scc-integration-tests

Open more actions menu

Repository files navigation

scc-integration-tests

Integration tests for SCC

These integration tests simulate basic and advanced scenarios that may be encountered in SCC. The goal of each test scenario is to spawn up a cluster and change its state while clients are simultaneously publishing and consuming channel data to/from various instances within that cluster.

To run the tests, you need to have Node.js and Docker installed - You should be able to run the docker command from your user account without sudo. Then:

  1. git clone this repo
  2. cd into the newly created directory
  3. Run npm install
  4. Run npm test

Note that if you've built an SCC architecture with some custom instances, you can swap out the default Docker images with your own images in config.js.

If you find new failure scenarios that you would like someone to look at and/or resolve, feel free to open a pull request on this repo so that we can start working on a fix.

Please put long/complex test scenarios in a separate file under the test/ directory.

The goal of this project is to help the SocketCluster/SC community share solutions and to build up a comprehensive set of test scenarios to help everyone build more robust systems on top of the SCC architecture.

About

Integration tests for SCC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.