Skip to content

[TM-218] integrational testing engine confusing behavior

Description

Let's consider such a test:

  originate …
  transferA
  transferB
  validate $ Left …
  transferC
  validate …

Let's assume that originate and transferA succeed and transferB fails according to what the first validator expects. Then it seems natural that transferC will see effects of originate and tranferB, but it won't. All operations between to validators are batched and either all or none of them are applied. It looks somewhat confusing. This MR refactors integrational testing engine a little so it interprets operators as they added.

Related issue(s)

https://issues.serokell.io/issue/TM-218

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:

Stylistic guide (mandatory)

Edited by Anton Myasnikov

Merge request reports