bitcoin icon indicating copy to clipboard operation
bitcoin copied to clipboard

test: Use test framework utils in functional tests

Open osagie98 opened this issue 2 years ago • 9 comments

Replaces bare asserts with test framework utils across both the functional tests and the test framework itself.

Also adds the assert_not_equal, assert_less_than, and assert_less_than_or_equal util functions for greater readability.

Fixes #23119.

osagie98 avatar Sep 25 '23 04:09 osagie98

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
Concept ACK BrandonOdiwuor

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #29007 (test: create deterministic addrman in the functional tests by stratospher)
  • #28926 (rpc: add 'getnetmsgstats' RPC by willcl-ark)
  • #28890 (rpc: Remove deprecated -rpcserialversion by maflcko)
  • #28550 (Covenant tools softfork by jamesob)
  • #28312 (test: fix keys_to_multisig_script (P2MS) helper for n/k > 16 by theStack)
  • #28307 (rpc, wallet: fix incorrect segwit redeem script size limit by furszy)
  • #21283 (Implement BIP 370 PSBTv2 by achow101)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

DrahtBot avatar Sep 25 '23 04:09 DrahtBot

Though the change is simple, it touches a ton of files. I can break it into multiple PRs if that makes sense.

osagie98 avatar Sep 25 '23 05:09 osagie98

@theStack Added you as reviewer/mentor, because the issue was opened by you

maflcko avatar Oct 05 '23 16:10 maflcko

@osagie98: Can you squash the commits and rebase on master? Happy to review.

theStack avatar Oct 05 '23 21:10 theStack

@theStack done (I hope, still getting used to the GitHub workflow). Let me know if you'll need anything else

osagie98 avatar Oct 06 '23 05:10 osagie98

Hi @theStack, any chance you'd be able to review this?

osagie98 avatar Oct 24 '23 16:10 osagie98

Hi @theStack, any chance you'd be able to review this?

Yes, planning to (finally) review this within the next 1-2 days.

theStack avatar Oct 24 '23 23:10 theStack

Hi @BrandonOdiwuor,

Sorry, I missed the notification of your messages. I missed a few asserts, so I went back to add them. I also initially chose not to change any assert x is True/False as I wasn't sure if it would be useful, but I decided now to change those as well.

Please take another look whenever you're free, thank you!

osagie98 avatar Dec 11 '23 04:12 osagie98

🐙 This pull request conflicts with the target branch and needs rebase.

DrahtBot avatar Jan 05 '24 11:01 DrahtBot

Closing for now due to inactivity. I think it is pretty clear that a change like this won't be going in in one go.

If someone wants to try this again, I'd recommend to try a smaller portion and see if reviewers like it. If not, then maybe it isn't worth changing?

maflcko avatar Feb 22 '24 17:02 maflcko