【文件属性】:
文件名称:inprototest:闪电BOLT协议测试框架
文件大小:91KB
文件格式:ZIP
更新时间:2021-01-31 10:37:41
lightning bitcoin BitcoinPython
Inprototest:闪电网络协议的测试者
lnprototest是一组用Python3编写的测试助手,旨在在您提议对闪电网络协议进行更改时以及在测试现有实现时轻松编写新测试。
安装要求
安装必要的依赖项
pip3 install -r requirements.txt
安装lnprototest
pip3 install -e .
好了,现在我们可以运行测试了
运行测试
最简单的运行方法是使用“虚拟”跑步者:
make check
以下是一些其他有用的pytest选项:
-n8运行8路并行。
-x在第一次失败时停止。
--pdb在第一次失败时进入调试器。
--trace在每个测试中进入调试器。
-k foo仅运行名称中带有“ foo”的测试。
tests/test_bolt1-01-init.py仅在该文件中运行测试。
tests/test_bolt1-01-init.py::test_init仅运行该测试。
针对真实节点运行。
运行的更有用的方法是使用现有的实现。 到目前为止,支持c-lightning。 你会需要:
bitcoind已安装,并且在您的路
【文件预览】:
lnprototest-master
----.gitignore(26B)
----README.md(2KB)
----tests()
--------test_bolt2-10-add-htlc.py(18KB)
--------conftest.py(1KB)
--------pytest.ini(56B)
--------test_bolt2-02-reestablish.py(7KB)
--------test_bolt7-20-query_channel_range.py(15KB)
--------test_bolt2-01-open_channel.py(10KB)
--------test_bolt7-01-channel_announcement-success.py(3KB)
--------test_bolt7-02-channel_announcement-failure.py(9KB)
--------test_bolt2-20-open_channel_accepter.py(17KB)
--------helpers.py(5KB)
--------test_bolt7-10-gossip-filter.py(8KB)
--------test_bolt1-01-init.py(7KB)
--------test_bolt1-02-unknown-messages.py(1KB)
----requirements.txt(167B)
----tools()
--------check_quotes.py(7KB)
----setup.py(687B)
----Makefile(868B)
----HACKING.md(3KB)
----lnprototest()
--------errors.py(615B)
--------funding.py(30KB)
--------bitfield.py(1KB)
--------dummyrunner.py(5KB)
--------signature.py(5KB)
--------runner.py(8KB)
--------utils.py(859B)
--------structure.py(8KB)
--------clightning()
--------stash()
--------__init__.py(3KB)
--------event.py(19KB)
--------keyset.py(6KB)
--------commit_tx.py(146KB)
--------namespace.py(694B)