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

Use dev-deps during compilation in snforge-test-collector #1033

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

piotmag769
Copy link
Contributor

@piotmag769 piotmag769 commented Jan 4, 2024

Closes foundry-rs/starknet-foundry#1460

The solution is to fetch dependencies from unit test compilation unit.

After talking with @mkaput we decided that to ensure this heuristic solution doesn't break we check if all other test compilation units have the same dependencies (excluding dependencies being sources for integration tests i. e., starting with {package_path}/tests/).

Copy link
Contributor

@maciektr maciektr left a comment

Choose a reason for hiding this comment

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

Looks good, one nit comment

extensions/scarb-snforge-test-collector/src/metadata.rs Outdated Show resolved Hide resolved
@mkaput mkaput removed their request for review January 5, 2024 06:39
@piotmag769 piotmag769 requested review from MaksymilianDemitraszek and Arcticae and removed request for cptartur January 5, 2024 18:44
@maciektr maciektr added this pull request to the merge queue Jan 8, 2024
Merged via the queue into main with commit 1fe9f8f Jan 8, 2024
20 checks passed
@maciektr maciektr deleted the fix-dev-deps-test-collector branch January 8, 2024 16:13
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.

Include dev-dependencies in test compilation
3 participants