cicada-distributed
Cicada Distributed is a framework with the goal of making integration, load, and stress tests less expensive to build. Cicada is designed to manage vast groups of users to test your services while making tests easier to build and understand. To get started, install Cicada through pip:
pip install cicadad
Example
Create a file called test.py with the following:
from cicadad.core.decorators import scenario
from cicadad.core.engine import Engine
engine = Engine()
@scenario(engine)
def my_first_test(context):
# Results of previously run scenarios get passed in as context
# Write the body of your test here
assert 2 + 2 == 4
# Anything returned gets saved as a user output
return "Passed!"
if __name__ == "__main__":
engine.start()
Next, run the test:
cicada-distributed run
You should see Cicada run the test and print something like this in the console:
========================= Test Complete =========================
Passed:
* my_first_test
====================== 1 passed, 0 failed =======================
--------------------- my_first_test: Passed ---------------------
Time Taken: 2.018773 Seconds
Succeeded: 1 Loop(s)
Failed: 0 Loop(s)
Metrics:
my_first_test metrics
───────────────────────────────────────────────────────────────
name value
───────────────────────────────────────────────────────────────
runtimes Min: 0.118, Median: 0.118, Average:
0.118, Max: 0.118, Len: 1
results_per_second
success_rate 100.0
───────────────────────────────────────────────────────────────
Example with Docker
To create a test and Dockerfile, create a directory and initialize the test scripts:
mkdir example-tests
cicada-distributed init ./example-tests
You should see a couple of files:
- example-tests
- test.py
- Dockerfile
Before running tests, you must start a local backend:
cicada-distributed start-cluster
When you run the command cicada-distributed run --mode=DOCKER, Cicada will
build an image for the test and start a test runner. You should see the test
runner create a container for the test, scenario, and users when you run
docker ps.
Once tests are complete, stop the cluster:
cicada-distributed stop-cluster
Documentation
Documentation is available at https://cicadatesting.github.io/cicada-distributed-docs/docs/introduction/installation
Demos are available at https://github.com/cicadatesting/cicada-distributed-demos
Cicada Cloud's homepage is https://cicada-cloud.webflow.io/
Help
If you have a question, please post it on Stack Overflow with the
cicada-distribtued tag:
https://stackoverflow.com/questions/tagged/cicada-distributed.
Chat
For quick questions, please feel free to post them on the Discord server.
Bugs
To report a bug, add it to the project's GitHub issue tracker.
License
Copyright Jeremy Herzog, 2021.
Cicada Distributed uses the Apache 2.0 license.
Metadata
Release files for cicadad 1.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cicadad-1.7.0.tar.gz | 147.0 MB | Without provenance | Details for cicadad-1.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cicadad-1.7.0-py3-none-any.whl | Python 3 | none | any | Details for cicadad-1.7.0-py3-none-any.whl |
Total release size: 294.5 MB
Release files / cicadad-1.7.0.tar.gz
| Download URL | cicadad-1.7.0.tar.gz |
|---|---|
| Size | 147.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14793abe31bc40e05503e36da89b4a87aa2ecb66b217dc51d5cbd05be9bde001
|
|
BLAKE2b-256 checksum How to use checksums |
045f622418995e1962c9673d39cacb89dab6c0b1232e14780a1a8bad0c0f042a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / cicadad-1.7.0-py3-none-any.whl
| Download URL | cicadad-1.7.0-py3-none-any.whl |
|---|---|
| Size | 147.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
713ff9b8065fb891e809f297299cab1e0453dccaaf6eff4c2ca8343ec2e22daa
|
|
BLAKE2b-256 checksum How to use checksums |
e141656b2a640ae178a032d67febadbe062004f1fb56ce4698c0b7a24b6324bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for cicadad 1.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.