zingolib icon indicating copy to clipboard operation
zingolib copied to clipboard

Test Infrastructure Upgrade, port lib-to-node tests to lib-to-darkside

Open zancas opened this issue 1 year ago • 0 comments

Setup

Ordered Set of Tasks:

Ensure that you can run these tests:

  1. https://github.com/zingolabs/zingolib/blob/dev/integration-tests/tests/integrations.rs

  2. https://github.com/zingolabs/zingolib/tree/dev/darkside-tests/tests

  3. Rename this directory https://github.com/zingolabs/zingolib/tree/dev/integration-tests TO: "lib-to-node-tests"

  4. Rename this directory https://github.com/zingolabs/zingolib/tree/dev/darkside-tests TO: "lib-to-darkside-tests"

Create darkside-parity-tests

Start with the test that you understand best. Best Understood Test (BUT)

For each test in the "lib-to-node-tests":

  1. create a new test in "lib-to-darkside" with the same name
  2. make the new test in "lib-to-darkside" validate all of the same behavior as the original test, it should make the same assertions in the same order. If the original test should have more assertions, then add them!

This issue is complete when every test in lib-to-node has a darkside-parity test that performs the same lightclient-behavior-validation as the original test.

There should be (at least initially), a single PR for each test that is ported.

zancas avatar Feb 23 '24 12:02 zancas