fd37be7199
* 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. |
||
---|---|---|
.. | ||
teal | ||
.gitignore | ||
NOTES | ||
README.md | ||
attest.py | ||
cnNftMetadata.json | ||
conftest.py | ||
foo | ||
foo.js | ||
foo2.ts | ||
pytest.ini | ||
simple.py | ||
test.py | ||
test2.ts | ||
test_tmpl_sig.py | ||
test_vaa_verify.py | ||
test_wormhole_core.py | ||
testlib.ts | ||
tests.vaa | ||
tvl.ts | ||
whinfo.ts |
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