NEWTON

NEWTON


Popular tags

    Is there a way to accelerate pytest for cairo contract?

    Asked

    4 months ago

    18

    views


    0

    Hi, I'm using pytest for testing cairo contract. I found that a simple starknet setup and initial call for contract cost 34 seconds. Is there a way to accelerate test?

    upd: yes, this works. but I found that compiling contract cost 7s and deploying contract cost 25s. These two operations are the most time-consuming

      cairocairo-langpytest

    Newton

    asked

    4 months ago


    1 answers

    0

    you can reduce it a bit per test by batching tests together and creating fixtures that have scope for the whole session or module of tests like this https://github.com/0xtonysprocket/fixed_point/blob/main/tests/conftest.py

    answered

    4 months ago

    Your answer

    NEWTON

    NEWTON