Questions tagged [unit-test]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
2answers
74 views

Bitcoin Core: Unit Test Failure: system_tests.cpp: Line 48 BOOST_AUTO_TEST(run_command)

I cloned the Bitcoin Core and did the build. But, I am experiencing a Unit Test Failure in system_tests.cpp, Line 48 BOOST_AUTO_TEST(run_command). First, my environment: Hardware: Intel i7-8550U @1....
3
votes
1answer
132 views

Can someone explain the output from running Bitcoin Core unit tests on Mac OS please?

When I build and run the unit tests on Mac OS using the make check command the output contains these two summaries (images uploaded below). Why does the testsuite summary initially summarize zero ...
2
votes
1answer
147 views

What is Valgrind? When should I use it for debugging Bitcoin Core over using gdb, lldb, pdb etc?

I was watching Fabian Jahr's presentation on debugging Bitcoin Core at Bitcoin Edge Dev++ 2019. He mentioned Valgrind briefly at the end. What is it and when should I use it over gdb, lldb, pdb etc?
2
votes
2answers
99 views

Is writing unit tests a good way to start contributing to Bitcoin core?

I'm considering writing unit tests to Bitcoin core as a first step to C++ development and Bitcoin contribution. Anyone have any suggestions about the journey I'm about to begin and possible files that ...
2
votes
1answer
36 views

What are some examples of previous first contributions improving Bitcoin Core tests?

I have heard that improving the Bitcoin Core tests is a good way to start contributing to Bitcoin Core. What are some good examples of previous first contributions to the tests to take some ...
1
vote
1answer
333 views

Debugging Bitcoin Unit Tests

I am running the unit tests from bitcoin source using make check, and would like to debug the tests using LogPrint in the bitcoin source files. I read in the Test Docs that logs are only output to ...
1
vote
1answer
57 views

pyln.testing channel's spendable_msatoshi remains 0 in the direction towards the funder, regardless of balance

The python test script below (using the pyln-testing library) opens a channel between l1 and l2, and then the funder (l1) pays half of the channel's capacity to l2. After this payment 'l2' wants to ...
1
vote
1answer
76 views

What backward compatibility testing is done on Bitcoin Core?

The unit and functional tests of the latest release of Bitcoin Core obviously test the codebase of that release. What backward compatibility testing is done to ensure the latest release passes ...
0
votes
1answer
28 views

How can I analyze the test coverage of the Bitcoin Core codebase?

I have heard writing tests is a good starting point for contributing to Bitcoin Core. How do I work out which parts or specific lines of the codebase need additional test coverage?