identus-cloud-agent icon indicating copy to clipboard operation
identus-cloud-agent copied to clipboard

Some integration-test scenarios are impure

Open patextreme opened this issue 5 months ago • 1 comments

Is this a regression?

No

Description

When running all integration-test scenarios together, as is done in CI, everything works as expected. However, when debugging locally and isolating specific test scenarios for faster iteration, I've noticed that some scenarios leak data between each other.

This may be intentional, but it increases cognitive load when trying to debug tests in isolation. Ideally, each test scenario should be as independent as possible to minimize this complexity.

In PR #1616(https://github.com/hyperledger-identus/cloud-agent/pull/1616), extra steps were added to present_proof.feature to ensure cases do not reuse data or state from other scenarios, but the underlying issue of impurity between scenarios remains and should be addressed for better local testing and debugging.

Please provide the exception or error you saw

NA

Please provide the environment you discovered this bug in

NA

Anything else?

No response

patextreme avatar Sep 09 '25 14:09 patextreme

I would recommend to refactor as we go, for now, it is working as a complete package. But if anyone find other cases like this, don't be afraid to fix it.

patextreme avatar Sep 09 '25 15:09 patextreme