John Saigle d81f78d0ba docs: add guide for working with JS packages securely (#4487) 2 mēneši atpakaļ
..
teal 4e53392819 1) Add payload3 support into typescript 3 gadi atpakaļ
.gitignore ddb2afdf36 WH-1816: add new .gitignore @ Closes #1816 3 gadi atpakaļ
README.md fd94c649b0 add: new and adversarial tests 3 gadi atpakaļ
attest.py fd37be7199 tilt: algorand changes for 3.16.2 (#3114) 2 gadi atpakaļ
cnNftMetadata.json 6967f44e55 algo - add stuff to tilt (#1230) 3 gadi atpakaļ
conftest.py fd94c649b0 add: new and adversarial tests 3 gadi atpakaļ
foo cc72c2a644 algo: contracts 3 gadi atpakaļ
foo.js cc72c2a644 algo: contracts 3 gadi atpakaļ
foo2.ts cc72c2a644 algo: contracts 3 gadi atpakaļ
pytest.ini fd94c649b0 add: new and adversarial tests 3 gadi atpakaļ
simple.py fd37be7199 tilt: algorand changes for 3.16.2 (#3114) 2 gadi atpakaļ
test.py a1598b2769 coinspect_tests: adjust comments 3 gadi atpakaļ
test2.ts cc72c2a644 algo: contracts 3 gadi atpakaļ
test_tmpl_sig.py fd94c649b0 add: new and adversarial tests 3 gadi atpakaļ
test_vaa_verify.py fd94c649b0 add: new and adversarial tests 3 gadi atpakaļ
test_wormhole_core.py fd94c649b0 add: new and adversarial tests 3 gadi atpakaļ
testlib.ts ff186e441a rename dev.v2 to main 3 gadi atpakaļ
tests.vaa cc72c2a644 algo: contracts 3 gadi atpakaļ
tvl.ts fd37be7199 tilt: algorand changes for 3.16.2 (#3114) 2 gadi atpakaļ
whinfo.ts fd37be7199 tilt: algorand changes for 3.16.2 (#3114) 2 gadi atpakaļ

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