wormhole/algorand/test
Hernán Di Pietro fd37be7199
tilt: algorand changes for 3.16.2 (#3114)
* Changes for 3.16.2 Tilt / Devnet.

* Updated constants in test file

* modified python script to 3.16.2

* More AppID Changes.

* Found more AppIds to replace.

* testApp fixed to 1008.
2023-06-28 11:37:41 -04:00
..
teal 1) Add payload3 support into typescript 2022-05-11 07:29:56 -05:00
.gitignore WH-1816: add new .gitignore @ Closes #1816 2022-10-28 11:06:42 -05:00
NOTES algo: contracts 2022-04-29 20:56:17 -04:00
README.md add: new and adversarial tests 2022-10-19 06:38:19 -05:00
attest.py tilt: algorand changes for 3.16.2 (#3114) 2023-06-28 11:37:41 -04:00
cnNftMetadata.json algo - add stuff to tilt (#1230) 2022-05-31 15:49:38 -04:00
conftest.py add: new and adversarial tests 2022-10-19 06:38:19 -05:00
foo algo: contracts 2022-04-29 20:56:17 -04:00
foo.js algo: contracts 2022-04-29 20:56:17 -04:00
foo2.ts algo: contracts 2022-04-29 20:56:17 -04:00
pytest.ini add: new and adversarial tests 2022-10-19 06:38:19 -05:00
simple.py tilt: algorand changes for 3.16.2 (#3114) 2023-06-28 11:37:41 -04:00
test.py coinspect_tests: adjust comments 2022-10-19 06:38:19 -05:00
test2.ts algo: contracts 2022-04-29 20:56:17 -04:00
test_tmpl_sig.py add: new and adversarial tests 2022-10-19 06:38:19 -05:00
test_vaa_verify.py add: new and adversarial tests 2022-10-19 06:38:19 -05:00
test_wormhole_core.py add: new and adversarial tests 2022-10-19 06:38:19 -05:00
testlib.ts rename dev.v2 to main 2022-11-29 10:43:07 -05:00
tests.vaa algo: contracts 2022-04-29 20:56:17 -04:00
tvl.ts tilt: algorand changes for 3.16.2 (#3114) 2023-06-28 11:37:41 -04:00
whinfo.ts tilt: algorand changes for 3.16.2 (#3114) 2023-06-28 11:37:41 -04:00

README.md

Adversarial and extra testing

README for the adversarial and extra tests added by Coinspect during the audit.

Requirements

Some of the new tests require pytest, which was already declared as a dependency.

Two new randomized test use the approach that previous tests where using and are simply in test.py. See Usage.

Usage

test.py

test.py now accept two additional flags:

--loops defines how many times the tests should run

--bigset defines if it should use the big guardian set

For example, to run the tests with 10 loops and a big validator set. Note the --loop flag will not affect previous tests.

python test.py --loops 10 --bigset

Running Pytest tests

Simple do:

$ pytest

Notes

Shared fixtures are declared in conftest.py