https://github.com/hirosystems/stacks-functional-tests
https://github.com/hirosystems/stacks-functional-tests
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/hirosystems/stacks-functional-tests
- Owner: hirosystems
- License: apache-2.0
- Created: 2024-02-14T17:26:51.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-14T14:05:56.000Z (over 1 year ago)
- Last Synced: 2025-02-22T19:50:01.303Z (over 1 year ago)
- Language: TypeScript
- Size: 557 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `stacks-functional-tests`
> A repo for running functional tests on Stacks.
`src/tests` consists of suites of tests that can be run independently against different network setups.
For example, we might run a suite against a full regtest, while another suite runs against clarinet, or another runs against live testnet.
## Local Docker
It's possible to run a local dockerized environment for testing using the `docker-compose.yml` file in the root of this repo.
## Regtest
It's possible to use this repo side-by-side with the Stacks regtest environment.
1. Setup the `regtest-env` folder next to this repo.
2. Run the regtest environment OR configure the ENV to automatically start/stop the regtest environment.
1. `REGTEST_DOWN_CMD` - The command to stop the regtest environment (e.g. `cd /regtest && docker compose down`).
2. `REGTEST_UP_CMD` - The command to start the regtest environment (e.g. `cd /regtest && docker compose up -d`).
3. Run a test via Jest.