https://github.com/socketcluster/scc-integration-tests
Integration tests for SCC
https://github.com/socketcluster/scc-integration-tests
Last synced: about 1 year ago
JSON representation
Integration tests for SCC
- Host: GitHub
- URL: https://github.com/socketcluster/scc-integration-tests
- Owner: SocketCluster
- Created: 2018-03-17T11:43:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T19:30:21.000Z (almost 2 years ago)
- Last Synced: 2025-02-18T09:22:27.295Z (about 1 year ago)
- Language: JavaScript
- Size: 81.1 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.