[Feature Request]: aptos move test
Should Prioritize [dev-addresses]
Over [addresses]
#14882
Labels
enhancement
New feature or request
stale-exempt
Prevents issues from being automatically marked and closed as stale
Description
When running tests with
aptos move test
, the CLI attempts to resolve addresses from the[addresses]
section of theMove.toml
file, even when[dev-addresses]
are defined specifically for testing. This causes address conflicts, especially when placeholder values (like_
) are used in the[addresses]
section for production or deployment.The following error occurs when the same named address is used in both sections:
Current Workaround:
The current way to avoid this is to either:
[dev-addresses]
section, or[addresses]
with underscores (_
).Proposed Solution
It would be more efficient if
aptos move test
prioritized addresses from[dev-addresses]
when running in dev mode. This would allow for smooth local testing without having to temporarily adjust or remove entries from the[addresses]
or[dev-addresses]
sections.This change would improve the development experience, especially since the typical workflow involves using specific addresses for local testing first and production addresses later on.
Sample
Move.toml
:Versions:
Related Issues:
#7228
The text was updated successfully, but these errors were encountered: