-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Expanding the functionality of the test
task
#1116
Comments
Mocha 8 (a drop-in replacement for 7 for the the most part) also supports parallel tests - it'd be great if we had this and each test file got their own Hardhat node. |
Running a command such as find . -maxdepth 3 -type d \( -name "node_modules" \) -prune -false -o -name "test" | xargs -i{} sh -c "( cd {}/../; npx mocha --bail --grep \"The filter phrase that you want\" --recursive \"test/**/*.ts\" )" Could do the trick, but I am not sure if |
@sisco0 that script is for running our internal tests. This issue is about changing how the test task works. |
I understand @fvictorio , I am not sure if sisco0@5459840 is the expected behavior, but I am testing it with |
Just came here to request this feature ( Would be great though if |
Current issue could be closed as mentioned by @cameel . Great work team. |
Can you create issues for the flags/arguments that you think are worth adding? I'm closing this issue as it's too generic to be useuful. |
This are frequently requested features that we should implement:
--bail
option that makes mocha stop in the first failure--grep
option to filter testsThe last to ones are actually mocha arguments, but as our task system is more generic than mocha (e.g. a plugin could use jest instead), we should not communicate them as being mocha arguments. Maybe we should use different names.
The text was updated successfully, but these errors were encountered: