https://github.com/aave/tests-protocol-v2-sigmaprime
Test suite for the Aave Protocol v2 by SigmaPrime during their audit
https://github.com/aave/tests-protocol-v2-sigmaprime
Last synced: 2 months ago
JSON representation
Test suite for the Aave Protocol v2 by SigmaPrime during their audit
- Host: GitHub
- URL: https://github.com/aave/tests-protocol-v2-sigmaprime
- Owner: aave
- Created: 2021-02-01T09:49:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-01T09:51:44.000Z (over 4 years ago)
- Last Synced: 2025-04-12T10:03:54.400Z (2 months ago)
- Language: Solidity
- Size: 154 KB
- Stars: 8
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Brownie Tests
## Installing Brownie
Brownie can be installed via
```sh
pip install eth-brownie
```Alternatively all required packages can be installed via
```sh
pip install -r requirements.txt
```## Running the Tests
Tests can be run from the directory `aave-review/tests`
```sh
brownie test
```Note you can add all the pytest parameters/flags e.g.
* `tests/test_deploy.py`
* `-s`
* `-v`
* `-k `## Initial Setup
This only needs to be done the first time (or possibly just copy `aave-review/tests` next time).
From `aave-review/tests` run
```sh
brownie init
```Make sure the contracts have been copied to `aave-review/tests/contracts`
## Writing tests
The same as the old `pytest` style. Add a file named `tests_.py`
to the folder `aave-review/tests/tests`.Each individual test case in the file created above must be a function named
`test_()`.Checkout the [brownie docs](https://eth-brownie.readthedocs.io/en/stable/tests-pytest-intro.html)
for details on the syntax.Note `print(dir(Object))` is handy way to see available methods for a python object.