Files
pezkuwi-subxt/substrate/simnet_tests/README.md
T
radupopa2010 113ffcae52 add simnet tests (#9222)
* add simnet tests

* add link to bracap presentation of simnet

* add link to bracap presentation of simnet

* rm not needed file
2021-07-02 12:48:14 +02:00

40 lines
1.8 KiB
Markdown

# Simulation tests, or high level integration tests.
_The content of this directory is meant to be used by Parity's private CI/CD
infrastructure with private tools. At the moment those tools are still early
stage of development and we don't when if / when they will available for
public use._
## Content of this dir.
`configs` dir contains config files in toml format that describe how to
configure the simulation network that you want to launch.
`tests` dir contains [cucumber](https://cucumber.io/) files. Those are
Behavior-Driven Development test files that describe tests in plain English.
Under the hood there are assertions that specific metrics should have specific
values.
At the moment we have 2 tests: `tests/quick/001-smoketest.feature` and
`tests/long/002-loadtest.feature`
The load test uses a JS script that we added to simnet image and it's launched
by this step in the cucumber file:
`Then launch 'node' with parameters '/usr/local/bin/sub-flood --finalization --url ws://localhost:11222'`
`run_test.sh` is a script meant to ease up launching a test.
In order to use this script locally, you need to install
[gurke](https://github.com/paritytech/gurke)
This script also helps preparing the test environment. Once you have access to
a kubernetes cluster (meaning you can do `kubectl get pods`) you can run this
script with no arguments, like `./run_test.sh` and tests should run.
Kubernetes cluster can be local, spawned with
[kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation)
or an instance living in the
[cloud](https://github.com/paritytech/gurke/blob/main/docs/How-to-setup-access-to-gke-k8s-cluster.md)
### [Here is link to barcamp presenation of simnet](https://www.crowdcast.io/e/ph49xu01)
### [Here is link to the simnet repo, hosted on private gitlab](https://gitlab.parity.io/parity/simnet/-/tree/master)