使用 --rerun-each
旗標,使用 Bun 測試執行器多次重新執行每個測試。這對於尋找不穩定的或非決定性的測試很有用。
# re-run each test 10 times
bun test --rerun-each 10
請參閱 文件 > 測試執行器 以取得 bun test
的完整文件。
使用 --rerun-each
旗標,使用 Bun 測試執行器多次重新執行每個測試。這對於尋找不穩定的或非決定性的測試很有用。
# re-run each test 10 times
bun test --rerun-each 10
請參閱 文件 > 測試執行器 以取得 bun test
的完整文件。