Supports timeout when running moon test.
Motivation
Some test will hang due to bugs in library, dead loops, and potentially bugs in moon. Adding timeout for moon test can help user to better spot the issue.
Detailed Description
- Support
--timeout <timeout> in command line arguments in moon test, specifying the timeout applied to this run of moon test.
- Support
"test-timeout" configuration in moon.pkg.json, for CI usage.
- The
<timeout> supports human-readable notation of time duration, like 10s, 1m, 1h.
Related Issues
Checklist
Supports timeout when running
moon test.Motivation
Some test will hang due to bugs in library, dead loops, and potentially bugs in moon. Adding timeout for
moon testcan help user to better spot the issue.Detailed Description
--timeout <timeout>in command line arguments inmoon test, specifying the timeout applied to this run ofmoon test."test-timeout"configuration inmoon.pkg.json, for CI usage.<timeout>supports human-readable notation of time duration, like10s,1m,1h.Related Issues
moonhanging in macos tests: moonbitlang/maria#255 #1156Checklist