-
Notifications
You must be signed in to change notification settings - Fork 0
Unit tests
Itamar Reif edited this page Nov 12, 2021
·
1 revision
To run tests use SmartPy CLI from the core project directory. Create a folder for test outputs. Example:
mkdir TezFinTest
cd TezFin
~/smartpy-cli/SmartPy.sh test contracts/tests/CTokenTest.py ../TezFinTest/ --html
After executing the previous command, an HTML report will be generated in "../TezFinTest/CToken_Tests/log.html"
The following script does the same as above, but for all test files at once.
cd TezFin
./contracts/tests/run_tests.sh ~/smartpy-cli/SmartPy.sh
General information
Code description