Skip to content

Commit f98375c

Browse files
daipomWatson1978
andauthored
Backport(v1.16): ci: add "--report-slow-tests" option (#5063) (#5084)
**Which issue(s) this PR fixes**: * Backport #5063 **What this PR does / why we need it**: Very rarely, tests may take a long time to run, but it is difficult to determine which tests took a long time. At [test-unit](https://github.com/test-unit/test-unit) v3.6.3, `--report-slow-tests` option was introduced to show the top 5 slow tests. https://github.com/test-unit/test-unit/blob/d641c29d4068d407808c42b15c6dcdf9c2f2b439/doc/text/news.md?plain=1#L137-L140 I think it might be useful. Related to #5041 **Docs Changes**: Not needed. **Release Note**: CI improvements. Signed-off-by: Shizuo Fujita <fujita@clear-code.com> Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com> Co-authored-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 269a0e0 commit f98375c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Install dependencies
4242
run: bundle install
4343
- name: Run tests
44-
run: bundle exec rake test TESTOPTS="-v --no-show-detail-immediately"
44+
run: bundle exec rake test TESTOPTS="-v --report-slow-tests --no-show-detail-immediately"
4545

4646
test-windows-service:
4747
runs-on: windows-latest

0 commit comments

Comments
 (0)