Only compile one file and test it #9163
Unanswered
wjorgensen
asked this question in
Help
Replies: 1 comment
-
I usually put the source files and test files in the same directory (e.g.,
also, I run the command to ignore the temporary
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm building a version of rustlings for solidity called solidings. To check for completion of the individual files I wanted to run foundry tests. The problem with that is when
forge test
is run it builds the entire project and since there will be other files that don't compile the build fails. Is there a way to only compile a specific file and test and run the test without building the whole project? The only way I can think of right now is to have a whole separate foundry project for every file which would make the project massive.Beta Was this translation helpful? Give feedback.
All reactions