Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge contract testing library #336

Merged
merged 221 commits into from
Sep 18, 2023
Merged

Merge contract testing library #336

merged 221 commits into from
Sep 18, 2023

Conversation

Bargsteen
Copy link
Contributor

@Bargsteen Bargsteen commented Sep 15, 2023

Purpose

Merge the smart contract testing library into this repository.
This prepares us for migrating the old example tests to use the new testing library.

Changes

  • Merge in the library.
  • Replace the contracts-common submodule with the rust-sdk (since it is needed by the testing lib and contains the contracts-common lib via the base submodule)
  • Add a CI job for it that only runs when changes occur in the testing lib, the rust SDK or the rustfmt config file.
  • Update the readme to the new reality.
  • Checkout submodules recursively in the CI.
    • This is needed because the rust-sdk submodule has base as a submodule.

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

A step towards handling invoke_contract interrupts
The tests should be moved to concordium-base so that they can be used here.
However, it still doesn't exactly match concordium-client or the node (which
differ internally).
@Bargsteen Bargsteen changed the title Kb/merge contract testing lib Merge contract testing library Sep 15, 2023
Copy link
Collaborator

@limemloh limemloh left a comment

Choose a reason for hiding this comment

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

LGTM

.gitmodules Outdated Show resolved Hide resolved
This allows the user to use either https or ssh.

Co-authored-by: Emil Holm Gjørup <[email protected]>
@Bargsteen Bargsteen merged commit 7dc481a into main Sep 18, 2023
131 checks passed
@Bargsteen Bargsteen deleted the kb/merge-contract-testing-lib branch September 18, 2023 08:21
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