Closed tzaffi closed 2 years ago
.github/workflows/build.yml
Makefile
graviton/blackbox.py
mypy
graviton/dryrun.py
graviton/deprecated_dry_run.py
DryRunTestCaseMixin
graviton/deprecated_dryrun_mixin.py
pprint()
graviton/invariant.py
graviton/models.py
App
LSig
mypy.ini
notebooks
IMAGES.md
notebooks/notebooks_test.ipynb
pytest
notebooks/quadratic_factoring_game.ipynb
setup.py
tests/integration/algod_test.py
algod
tests/integration/dryrun_mixin_docs_test.py
tests/integration/lsig_test.py
pytest-xdist
Runniing with a single thread:
❯ make integration-test NUM_PROCS=1 ... ================================================================== slowest 10 durations =================================================================== 16.47s call tests/integration/blackbox_test.py::test_app_with_report[app_slow_fibonacci] 8.85s call tests/integration/blackbox_test.py::test_logicsig_with_report[lsig_slow_fibonacci] 5.03s call tests/integration/blackbox_test.py::test_logicsig_with_report[lsig_string_mult] 4.83s call tests/integration/blackbox_test.py::test_app_with_report[app_string_mult] 4.70s call tests/integration/lsig_test.py::test_factorizer_game_version_report[V4] 4.25s call tests/integration/lsig_test.py::test_factorizer_game_version_report[V3] 3.90s call tests/integration/lsig_test.py::test_factorizer_report_with_pymnt 3.56s call tests/integration/lsig_test.py::test_factorizer_game_version_report[V2] 2.43s call tests/integration/lsig_test.py::test_factorizer_game_version_report[V1] 1.49s call tests/integration/dryrun_mixin_docs_test.py::ExampleTestCase::test_factorial ========= 1737 passed in 82.38s (0:01:22) =========
With
❯ make integration-test ... ================================================================== slowest 10 durations =================================================================== 38.58s call tests/integration/blackbox_test.py::test_app_with_report[app_slow_fibonacci] 25.53s call tests/integration/blackbox_test.py::test_logicsig_with_report[lsig_slow_fibonacci] 19.45s call tests/integration/lsig_test.py::test_factorizer_game_version_report[V4] 18.16s call tests/integration/lsig_test.py::test_factorizer_game_version_report[V3] 18.12s call tests/integration/blackbox_test.py::test_app_with_report[app_string_mult] 16.77s call tests/integration/blackbox_test.py::test_logicsig_with_report[lsig_string_mult] 6.77s call tests/integration/dryrun_mixin_docs_test.py::ExampleTestCase::test_factorial 5.49s call tests/integration/lsig_test.py::test_factorizer_report_with_pymnt 4.59s call tests/integration/lsig_test.py::test_factorizer_game_version_report[V1] 3.27s call tests/integration/lsig_test.py::test_factorizer_game_version_report[V2] ========= 1737 passed in 44.31s =========
TODO: delete branch after #17 merged
Summary of Changes
.github/workflows/build.yml
+Makefile
:graviton/blackbox.py
:mypy
graviton/dryrun.py
:mypy
graviton/deprecated_dry_run.py
: new module that contains functionality mostly used by the now deprecatedDryRunTestCaseMixin
graviton/deprecated_dryrun_mixin.py
: where the now deprecatedDryRunTestCaseMixin
is definedgraviton/dryrun.py
:mypy
passpprint()
now returns a string, in addition to printinggraviton/invariant.py
: makemypy
passgraviton/models.py
: new module that contains lightweight models such as theApp
andLSig
dataclassesmypy.ini
: needed by mypynotebooks
: new directory for Jupyter notebooks. It contains:IMAGES.md
: a static file that shows examples of 3D graphs of dry-runsnotebooks/notebooks_test.ipynb
: explains how to test notebooks withpytest
notebooks/quadratic_factoring_game.ipynb
: Blackbox demosetup.py
: new Jupyter notebooks requirements, and declaration for receiving projects that this package is typedtests/integration/algod_test.py
: separate out the test thatalgod
is alive and well into a seperate integration test, for easier debuggingtests/integration/algod_test.py
: small refactoring, mostly formypy
tests/integration/dryrun_mixin_docs_test.py
: refactoring mostly due to deprecationstests/integration/lsig_test.py
: New logic sig only test. THIS NEEDS A CLEANUP.adding
pytest-xdist
for faster integration testing.Comparison on github:
Local test comparison:
Runniing with a single thread:
With