wormhole/algorand/test
Hendrik Hofstadt ff186e441a rename dev.v2 to main
Change-Id: Idfc6f88de7ee3c190a01c2196dc0bc4da91cbe4c
2022-11-29 10:43:07 -05: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 algo: contracts 2022-04-29 20:56:17 -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 algo: contracts 2022-04-29 20:56:17 -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 near/p3: Fix P3 2022-10-12 13:50:10 -05:00
whinfo.ts algo/cleanup: cleanup 2022-09-28 13:42:09 -05: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