make `forge test file_path` the same as `forge test --match-path file_path`
Component
Forge
Describe the feature you would like
Now that forge script file_path works, there seems to be no good reason why forge test file_path doesn't work. It should behave the same as forge test --match-path file_path.
Additional context
No response
Hi @zhiqiangxu thanks for your suggestion, I tend to agree this would be beneficial. Is this something you would like to work on?
I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
Hi please i will love to be given the opportunity to contribute to this rep,i am a blockchain developer html ,css ,react javascript typescript ,python
How I plan on tackling this issue
To solve this problem i would implement the following :
-
Align Functionality: Modify the
forge testcommand to accept a direct file path, making it function similarly toforge test --match-path file_path. -
Implement File Path Handling: Update the command to recognize and process the provided file path, ensuring it runs tests only within that specified file.
-
Consistency Check: Ensure that the behavior of
forge test file_pathis consistent withforge script file_pathto provide a unified experience. i will come up with a PR within 3-5 working days once i am assigned . please assign this issue to me i am ready to work
Hi @zhiqiangxu thanks for your suggestion, I tend to agree this would be beneficial. Is this something you would like to work on?
@zerosnacks I just created a PR here, pls take a look:)