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

Improving Test Flow with SNFoundry #431

Merged
merged 2 commits into from
Feb 8, 2025
Merged

Improving Test Flow with SNFoundry #431

merged 2 commits into from
Feb 8, 2025

Conversation

Nadai2010
Copy link
Collaborator

Improving Test Flow with SNFoundry

The test directory is not a sibling of contracts, which means the needs to be added in .lib:

#[cfg(test)]
mod test {
    mod TestContract;
}

And the contract name must also be modified to ensure proper functionality. However, by making the directory a sibling and renaming it to tests, it would follow the integration used in Foundry, automatically detecting the contracts without needing to add the test to .lib or requiring any specific relationship with the contract name.

Types of change

  • Feature
  • Bug
  • Enhancement

@0xquantum3labs 0xquantum3labs merged commit 6d18667 into main Feb 8, 2025
2 checks passed
@0xquantum3labs 0xquantum3labs deleted the nadai/snfoundry branch February 8, 2025 13:54
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.

3 participants