-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Allow passing mocha params in hardhat test
command
#4307
Comments
Hi @jmendiola222, thanks for this. You are right that this would be extremely useful. The problem is that, the way Hardhat's argument parser works right now, we need to add a new specific param for each Mocha param we want to support. I think the best way to do this would be to first have support for
And the |
I'm not into the internals of hardhat implementation, so I can't tell if your proposal is in fact the best approach, but it certainly sounds reasonable. Thanks. |
To allow Necessist to work with Mocha tests ending in `(`...`)`. This is a bandaid. A better approach would be to disable printing of times altogether. However, this appears to be an open issue for Hardhat: - NomicFoundation/hardhat#4307 - NomicFoundation/hardhat#4314
To allow Necessist to work with Mocha tests ending in `(`...`)`. This is a bandaid. A better approach would be to disable printing of times altogether. However, this appears to be an open issue for Hardhat: - NomicFoundation/hardhat#4307 - NomicFoundation/hardhat#4314
Describe the feature
There's been many requests for supporting particular params to mocha, either by config file and specially command. But most of them where stale closed, I think there is good evidence of this being useful on a variety of cases:
#1116
#2572
#2502
#2316
#1242
etc
My particular case, is the inability of using
--invert
while doing a--grep
filter.Refs: https://mochajs.org/api/mocha#invert
Search terms
mocha params test invert grep arguments
The text was updated successfully, but these errors were encountered: