-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f67aaaa
commit e229b97
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Nightly Testing Suite | ||
|
||
This is an infrastructure of nearcore end-to-end tests which is running in an | ||
endless loop on our CI. | ||
|
||
## Setup | ||
|
||
### Dependencies | ||
|
||
This testing suite is implemented in Python, so you will need to have Python | ||
installed (Python 3.8 is confirmed to work fine). | ||
|
||
Besides basic Python installation, extra Python packages are required, so it is | ||
recommended to use python-virtualenv, or pyenv, or similar projects to install | ||
those requirements: | ||
|
||
``` | ||
$ cd /path-to-nearcore/ | ||
$ pip install -r ./nightly/requirements.txt -r ./pytest/requirements.txt | ||
``` | ||
|
||
### Nearcore | ||
|
||
The testing suite expects `nearcore` to be built before you run the suite, so | ||
make sure that everything is built: | ||
|
||
``` | ||
$ cd /path-to-nearcore/ | ||
$ cargo build --workspace --tests | ||
``` | ||
|
||
## Run | ||
|
||
### a single test | ||
|
||
NOTE: Don't forget to activate your Python environment before running this. | ||
|
||
``` | ||
$ cd /path-to-nearcore/pytest/ | ||
$ python tests/sanity/block_production.py | ||
``` | ||
|
||
### the whole suite | ||
|
||
NOTE: Don't forget to activate your Python environment before running this. | ||
|
||
``` | ||
$ cd /path-to-nearcore/nightly/ | ||
$ python nightly.py run nightly.txt /tmp/nearcore-testruns/$(git rev-parse HEAD)_$(date +%y%m%d_%H%M%S) | ||
``` |