tAdd a Makefile for utility functions. - obelisk - Electrum server using libbitcoin as its backend HTML git clone https://git.parazyd.org/obelisk DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 5c35db371a89159452413a55b107cc7a576fe471 DIR parent cbcb2b9acb52fd4049922c1978d88002b56e6e2e HTML Author: parazyd <parazyd@dyne.org> Date: Fri, 16 Apr 2021 10:40:18 +0200 Add a Makefile for utility functions. Diffstat: M .gitignore | 4 ++-- A Makefile | 15 +++++++++++++++ A tests/__main__.py | 4 ++++ 3 files changed, 21 insertions(+), 2 deletions(-) --- DIR diff --git a/.gitignore b/.gitignore t@@ -1 +1,2 @@ -*.pyc -\ No newline at end of file +*.pyc +.coverage DIR diff --git a/Makefile b/Makefile t@@ -0,0 +1,15 @@ +all: + @echo "Available targets" + @echo "make format - Format code" + @echo "make test - Run test units" + @echo "make coverage - Run test units and report code coverage" + +format: + python3 ./res/format_code.py + +test: + python3 ./tests/test_electrum_protocol.py + +coverage: + coverage run tests + coverage report DIR diff --git a/tests/__main__.py b/tests/__main__.py t@@ -0,0 +1,3 @@ +import asyncio +from test_electrum_protocol import main +asyncio.run(main()) +\ No newline at end of file