-
In the Project Layout chapter in the Foundry Book, we are told that:
Then in the config README, we are told this:
Does this mean that Foundry can only look for test contracts directories nested underneath the contracts directory? So if I wanted to load tests from the Or that in the latter example, the test directory has been changed from |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No, sorry, this is incorrect. The book is a little out of date. Our default template places tests in |
Beta Was this translation helpful? Give feedback.
No, sorry, this is incorrect. The book is a little out of date.
Our default template places tests in
./src/test
andfoundry.toml
specifies the test directory to be./test
. Tests in./src
(and subfolders) are run as well as tests in./test
.