Skip to content

Conversation

@rflechtner
Copy link
Contributor

@rflechtner rflechtner commented Jun 16, 2022

This amends the integration test setup such that tests are run against a single endpoint if the TEST_WS_ADDRESS environment variable is set. If unset, testcontainers will be used as usual.
Implemented this to be able to run individual integration tests against a node compiled from source. Also helps with debugging, given that you can take your time to look at extrinsics through the apps.
Thought it may be useful to keep around.

Checklist:

  • I have verified that the code works
  • I have verified that the code is easy to understand
    • If not, I have left a well-balanced amount of inline comments
  • I have left the code in a better state
  • I have documented the changes (where applicable)

@rflechtner rflechtner self-assigned this Jun 16, 2022
@ntn-x2
Copy link
Member

ntn-x2 commented Jun 17, 2022

What do you mean by individual integration tests? As far as I can see now initializeApi() will create the same setup for all cases, right?

@rflechtner
Copy link
Contributor Author

rflechtner commented Jun 17, 2022 via email

Copy link
Member

@ntn-x2 ntn-x2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@rflechtner rflechtner merged commit b0fefe1 into develop Jun 27, 2022
@rflechtner rflechtner deleted the rf-integration-single-endpoint branch June 27, 2022 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants