Skip to content

Initial refactor of L1StdBridge test suite#3611

Merged
mergify[bot] merged 4 commits intodevelopfrom
ctb/test-cleanup
Sep 30, 2022
Merged

Initial refactor of L1StdBridge test suite#3611
mergify[bot] merged 4 commits intodevelopfrom
ctb/test-cleanup

Conversation

@maurelian
Copy link
Contributor

Description

Breaks the test suite up into distinct test contracts. Each state changing
method has its own contract for happy tests and another for sad
tests.

This is a 'weather baloon' PR with a minimal diff, affecting on the L1 Bridge.
Once accepted I'll extend the changes to the rest of the forge tests.

Tests

I added one test case to cover getters. Otherwise the only changes are renaming test methods, and breaking them up into a smaller contracts.

Having both a happy and sad test contract for each method makes it much easier to see where gaps in coverage are.

Additional context

Naming conventions were heavily inspired by Maple Finance's suite.

@changeset-bot
Copy link

changeset-bot bot commented Sep 29, 2022

⚠️ No Changeset found

Latest commit: 79f79a4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added 2-reviewers A-pkg-contracts-bedrock Area: packages/contracts-bedrock labels Sep 29, 2022
Breaks the test suite up in to test contracts. Each state changing
method has its own contract for happy tests and another for sad
tests.
@maurelian maurelian force-pushed the ctb/test-cleanup branch 2 times, most recently from a5e56f7 to 24f92ab Compare September 29, 2022 15:07
@mergify
Copy link
Contributor

mergify bot commented Sep 29, 2022

This PR changes implementation code, but doesn't include a changeset. Did you forget to add one?

@tynes
Copy link
Contributor

tynes commented Sep 30, 2022

So the empty contracts, the idea is to fill them out later? I notice there is multiple

@maurelian
Copy link
Contributor Author

So the empty contracts, the idea is to fill them out later? I notice there is multiple

Yeah, this is more of a PoC, trying to keep the diff small to get approval before I embark on this journey.
The number of empty contracts is pretty interesting in and of itself tho.

@mergify
Copy link
Contributor

mergify bot commented Sep 30, 2022

This PR has been added to the merge queue, and will be merged soon.

@mergify
Copy link
Contributor

mergify bot commented Sep 30, 2022

This PR is next in line to be merged, and will be merged as soon as checks pass.

@mergify mergify bot removed the on-merge-train label Sep 30, 2022
@mergify
Copy link
Contributor

mergify bot commented Sep 30, 2022

Merge failed. Please see automated check logs for more details.

@maurelian
Copy link
Contributor Author

@Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Sep 30, 2022

refresh

✅ Pull request refreshed

@mergify
Copy link
Contributor

mergify bot commented Sep 30, 2022

This PR has been added to the merge queue, and will be merged soon.

@mergify
Copy link
Contributor

mergify bot commented Sep 30, 2022

This PR is next in line to be merged, and will be merged as soon as checks pass.

@mergify mergify bot merged commit ae31d12 into develop Sep 30, 2022
@mergify mergify bot deleted the ctb/test-cleanup branch September 30, 2022 20:20
@mergify mergify bot removed the on-merge-train label Sep 30, 2022
This was referenced Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-pkg-contracts-bedrock Area: packages/contracts-bedrock

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants