-
Notifications
You must be signed in to change notification settings - Fork 3.6k
refactor(test): cleanup of L2 test structure and documentation #15901
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
Merged
aliersh
merged 34 commits into
ethereum-optimism:develop
from
aliersh:ari/l2-tests-cleanup
May 30, 2025
Merged
refactor(test): cleanup of L2 test structure and documentation #15901
aliersh
merged 34 commits into
ethereum-optimism:develop
from
aliersh:ari/l2-tests-cleanup
May 30, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…and documentation - consolidate test initialization into a single OptimismMintableERC721Factory_TestInit contract - organize individual test functions into separate contracts inheriting from TestInit - add @title and @notice tags to all test contracts - add function-level @notice comments describing expected behavior under test - ensure comment lines stay within 100 character limit
- ensure comment lines stay within 100 character limit in OptimismSuperchainERC20Beacon test - Update WETH test functions descriptions to explicitly mention default values
…umentation - consolidate test initialization into a single OptimismMintableERC721_TestInit contract - organize individual test functions into separate contracts inheriting from TestInit - group tests not directly tied to a base contract function into OptimismMintableERC721_Unclassified_Test - add @title and @notice tags to all test contracts - convert @dev tags to @notice where appropriate - add function-level @notice comments describing expected behavior under test - ensure comment lines stay within 100 character limit
🔁 Continues work from the closed PR #15862, after renaming the branch. |
packages/contracts-bedrock/test/L2/OptimismMintableERC721.t.sol
Outdated
Show resolved
Hide resolved
packages/contracts-bedrock/test/L2/ExecutingMessageEmitted.t.sol
Outdated
Show resolved
Hide resolved
- consolidate test initialization into a single L1Block_TestInit contract - organize individual test functions into separate contracts inheriting from TestInit - add @title and @notice tags to all test contracts - convert @dev tags to @notice where appropriate - add function-level @notice comments describing expected behavior under test - ensure comment lines stay within 100 character limit
- consolidate test initialization into a single CrossL2Inbox_TestInit contract - organize individual test functions into separate contracts inheriting from TestInit - add @title and @notice tags to all test contracts - add @notice tag to test function comments - ensure comment lines stay within 100 character limit
- consolidate test initialization into a single L2ERC721Bridge_TestInit contract - organize individual test functions into separate contracts inheriting from TestInit - group tests not directly tied to a base contract function into L2ERC721Bridge_Unclassified_Test - add @title and @notice tags to all test contracts - convert @dev tags to @notice where appropriate - ensure comment lines stay within 100 character limit
…cumentation - consolidate test initialization into a single OptimismSuperchainERC20_TestInit contract - organize individual test functions into separate contracts inheriting from TestInit - group tests not directly tied to a base contract function into OptimismSuperchainERC20_Unclassified_Test - add @title and @notice tags to all test contracts - ensure comment lines stay within 100 character limit
…umentation - consolidate test initialization into a single L2CrossDomainMessenger_TestInit contract - organize individual test functions into separate contracts inheriting from TestInit - group tests not directly tied to a base contract function into L2CrossDomainMessenger_Unclassified_Test - add @title and @notice tags to all test contracts - ensure comment lines stay within 100 character limit
… documentation - consolidate test initialization into a single L2ToL2CrossDomainMessenger_TestInit contract - organize individual test functions into separate contracts inheriting from TestInit - add @title and @notice tags to all test contracts - ensure comment lines stay within 100 character limit
- Update test initialization contract naming format to use _TestInit suffix - Add backticks around contract names in documentation comments - Fix duplicated notice tag in OptimismMintableERC721.t.sol - Fix contract naming convention in ExecutingMessageEmitted.t.sol
- remove Predeploys.t.sol refactor - remove ExecutingMessageEmmited.t.sol refactor
…tation - consolidate test initialization into a single CrossDomainOwnable_TestInit contract - organize tests into logical groups based on functionality (AccessControl and PortalIntegration) - add @title and @notice tags to all test contracts - convert @dev tags to @notice where appropriate - ensure comment lines stay within 100 character limit
…ntation - consolidate test initialization into a single CrossDomainOwnable2_TestInit contract - organize tests into logical groups (RevertConditions and SuccessConditions) - add @title and @notice tags to all test contracts - convert @dev tags to @notice where appropriate - ensure comment lines stay within 100 character limit
…ntation - consolidate test initialization into a single CrossDomainOwnable3_TestInit contract - organize tests into logical groups (BasicFunctionality, TransferOwnership, and CrossDomainAccess) - add @title and @notice tags to all test contracts - convert @dev tags to @notice where appropriate - ensure comment lines stay within 100 character limit
…tion - consolidate test initialization into a single L2StandardBridge_TestInit contract - organize individual test functions into separate contracts inheriting from TestInit - group tests not directly tied to a base contract function into L2StandardBridge_Unclassified_Test - add @title and @notice tags to all test contracts - convert @dev tags to @notice where appropriate - ensure comment lines stay within 100 character limit
…ation - consolidate test initialization into a single SequencerFeeVault_TestInit contract - organize individual test functions into separate contracts inheriting from TestInit - add @title and @notice tags to all test contracts - convert @dev tags to @notice where appropriate - ensure comment lines stay within 100 character limit
/ci authorize 61973cb |
smartcontracts
approved these changes
May 28, 2025
…argets in L2ToL2CrossDomainMessenger tests
- rena test Initializer contract to AssetReceiver_TestInit contract - organize individual test functions into separate contracts inheriting from TestInit - refactor test function names to follow naming convention - add @title and @notice tags to test contracts - ensure comment stay within 100 character limit
…mentation" This reverts commit dd4a5a3.
/ci authorize 80f630e |
mds1
approved these changes
May 29, 2025
Merged
via the queue into
ethereum-optimism:develop
with commit May 30, 2025
ef93ca1
58 checks passed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR refactors a portion of the test suite within the
/L2
folder as part of a broader effort to standardize structure, documentation, and formatting across the codebase.Changes applied to each file:
*_TestInit
contractsTestInit
@title
and@notice
tags to all test contracts@notice
comments describing expected behavior under test@dev
tags with@notice
where appropriateProgress
Refactored 25 of 25 test files (100.0% complete)
Note:
GasPriceOracle.t.sol
will be refactored in a later PR.BaseFeeVault.t.sol
CrossL2Inbox.t.sol
CrossDomainOwnable.t.sol
CrossDomainOwnable2.t.sol
CrossDomainOwnable3.t.sol
ETHLiquidity.t.sol
GasPriceOracle.t.sol
⏸ DeferredL1Block.t.sol
L1FeeVault.t.sol
L2CrossDomainMessenger.t.sol
L2ERC721Bridge.t.sol
L2StandardBridgeInterop.t.sol
L2StandardBridge.t.sol
L2ToL1MessagePasser.t.sol
L2ToL2CrossDomainMessenger.t.sol
OptimismMintableERC721.t.sol
OptimismMintableERC721Factory.t.sol
OptimismSuperchainERC20.t.sol
OptimismSuperchainERC20Beacon.t.sol
OptimismSuperchainERC20Factory.t.sol
OperatorFeeVault.t.sol
SequencerFeeVault.t.sol
SuperchainERC20.t.sol
SuperchainETHBridge.t.sol
SuperchainTokenBridge.t.sol
WETH.t.sol