{"repo":"rustyrussell/lnprototest","free":true,"listed":false,"github":"https://github.com/rustyrussell/lnprototest","clone":"git clone https://github.com/rustyrussell/lnprototest.git","description":"Lightning BOLT Protocol Test Framework","language":"Python","stars":72,"topics":["lightning","bitcoin"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"lnprototest a Testsuite for the Lightning Network Protocol Project Homepage lnprototest is a set of test helpers written in Python3, designed to make it easy to write new tests when you propose changes to the lightning network protocol, as well as test existing implementations. Install requirements To install the necessary dependences Well, now we can run the test Running test The simplest way to run is with the \"dummy\" runner: make check Here are some other useful pytest options: 1. -n8 to run 8-way parallel. 2. -x to stop on the first failure. 3. --pdb to enter the debugger on first failure. 4. --trace to enter the debugger on every test. 5. -k foo to only run tests with 'foo' in their name. 6. tests/test bolt1-01-init.py to only run tests in that file. 7. tests/test bolt1-01-init.py::test init to only run that test. 8. --log-cli-level={LEVEL NAME} to enable the logging during the test execution. Running Against A Real Node. The more useful way to run is to use an existing implementation. So far, core-lightning is supported. You will need: 1. bitcoind installed, and in your path. 2. lightningd compiled with --enable-developer . By default the source directory should be ../lightning relative to this directory, otherwise use export LIGHTNING SRC=dirname . 3. Install any python requirements by pip3 install -r lnprototest/clightning/requirements.txt . Then you can run make check PYTEST ARGS='--runner=lnprototest.clightning.Runner' or directly: pytest --runner=lnprototest.clight","default_branch":null,"files":null,"tree":[],"storefront":"/r/rustyrussell","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rustyrussell/lnprototest/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}