Skip to content

Add ``--time-limit=s`` to fail long-running tests

Compare
Choose a tag to compare
@mdmintz mdmintz released this 15 Jan 08:30
· 6202 commits to master since this release
a6ea87f

Add --time-limit=s to fail long-running tests

  • This removes and replaces pytest-timeout, which wasn't thread-safe

Usage (command-line):
--time-limit=s (fail the tests that run longer than "s" seconds)

Usage (in-test):
self.set_time_limit(s) (fail that test if it runs longer than "s" seconds)

Other unrelated changes:

  • Better detection of multi-thread use
  • Update click_visible_elements()
  • Some minor refactoring