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

Foundry --skip test script by default #466

Closed
wants to merge 2 commits into from
Closed

Conversation

Yhtiyar
Copy link

@Yhtiyar Yhtiyar commented Jul 4, 2023

Fixes #435

I tried to see if I could fix this quickly, and it seems to work.

Let me know if you would like to fix the naming or how the flag should behave, I can work on that

@CLAassistant
Copy link

CLAassistant commented Jul 4, 2023

CLA assistant check
All committers have signed the CLA.

Comment on lines 63 to 64
"test",
"script",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"test",
"script",
"'*/test/**'",
"'*/script/**'",
"--force",

This is necessary because not all test and scripts follow the foundry naming convention and if there's test/script artifacts in the cache they need to be removed

Copy link
Author

Choose a reason for hiding this comment

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

I have tested like this, but strangely, it was not working correctly (not skipping), if you wrap it with single quotes. At the same time, If I copy-paste the output from logs, forge build --build-info --skip '*/test/**' '*/script/**' --force and run it, that is working. (No idea, if it is a python/OS issue)

Then I tried without quotes (seems like the forge supports this), and it worked.

@Yhtiyar Yhtiyar requested a review from 0xalpharush July 5, 2023 16:19
@0xalpharush
Copy link
Contributor

this was replaced by #488

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.

add option to skip compiling Foundry scripts and tests
3 participants