Unit testing #146

issue witten opened this issue on April 9, 2011
  1. witten commented at 6:23 PM on April 9, 2011: contributor

    As unsexy as unit tests are, the quality and reliability of the Bitcoin code base could really benefit from some basic automated tests. I'm not even talking about integration tests with multiple nodes, but rather some simple tests of the core logic.

    Some initial tests (not mine) are here: https://github.com/devrandom/bitcoin/blob/tests/tests.cpp

    So if others agree that unit testing would be useful.. What unit test framework, if any, should be used?

  2. jgarzik commented at 6:39 PM on April 9, 2011: contributor

    Testing is a good thing, absolutely. Picking a unit test framework, and figuring out how to best integrate that into the tree, is best left to a forum discussion post, IMO.

  3. witten commented at 7:21 PM on April 9, 2011: contributor

    Looks like there has been some discussion about unit testing and related refactoring issues on the forum:

    http://www.bitcoin.org/smf/index.php?topic=4277.0 http://www.bitcoin.org/smf/index.php?topic=2244.0

    Maybe a more incremental approach would be preferable rather than a huge refactor-the-world attempt?

  4. witten closed this on Apr 9, 2011

  5. jgarzik commented at 7:23 PM on April 9, 2011: contributor

    The answer to that last question is almost always "yes" :)

  6. sipa referenced this in commit ecae2acb06 on Dec 11, 2014
  7. dexX7 referenced this in commit 81a3f14fe3 on Jul 26, 2015
  8. TheBlueMatt referenced this in commit 582b2934e6 on Oct 20, 2015
  9. ptschip referenced this in commit 1c7294ede4 on Nov 9, 2016
  10. rebroad referenced this in commit f5ae247fd9 on Dec 7, 2016
  11. deadalnix referenced this in commit 74ad63a9e5 on Jan 19, 2017
  12. jtimon referenced this in commit 3dfbd20864 on Apr 20, 2017
  13. destenson referenced this in commit feac3013f8 on Nov 18, 2017
  14. lateminer referenced this in commit 4da73e63e0 on Dec 9, 2017
  15. classesjack referenced this in commit 980f78cd93 on Jan 2, 2018
  16. cryptapus referenced this in commit 222bbb4b7c on May 3, 2019
  17. attilaaf referenced this in commit f97d7f80c6 on Jan 13, 2020
  18. Losangelosgenetics referenced this in commit 8fe5bd9e0d on Mar 12, 2020
  19. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me