diff options
author | Syed Tousif Ahmed <syed.ahmed.emails@gmail.com> | 2019-01-28 10:20:47 -0800 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2019-01-28 10:33:05 -0800 |
commit | 17e3ab957aa6d493582572eb4a2b9c6712797b8a (patch) | |
tree | fa95982eb48f4c3f2a6493788191d79ae6e67445 /test/run_test.py | |
parent | 0a2d14dd7c8690aefaac3a6b7469c40e862addcd (diff) | |
download | pytorch-17e3ab957aa6d493582572eb4a2b9c6712797b8a.tar.gz pytorch-17e3ab957aa6d493582572eb4a2b9c6712797b8a.tar.bz2 pytorch-17e3ab957aa6d493582572eb4a2b9c6712797b8a.zip |
Report the slowest 10 tests when using pytest (#16423)
Summary:
This flag is useful in identifying if a test is taking way too long like the ones in the following snippet when running the test suite with pytest. https://github.com/pytorch/pytorch/blob/9757ad35b0b56cf955f294e751de9b437f9bb4ff/test/common_utils.py#L814-L835
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16423
Differential Revision: D13843507
Pulled By: ezyang
fbshipit-source-id: 643e1766a85905b3b112ea5ca562135a17896a72
Diffstat (limited to 'test/run_test.py')
-rw-r--r-- | test/run_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run_test.py b/test/run_test.py index 93263eeba1..72e7b22061 100644 --- a/test/run_test.py +++ b/test/run_test.py @@ -335,7 +335,7 @@ def get_executable_command(options): else: executable = [sys.executable] if options.pytest: - executable += ['-m', 'pytest'] + executable += ['-m', 'pytest', '--durations=10'] return executable |