Ver código fonte

[minor] allow tests with longer timeout

version-14
Rushabh Mehta 8 anos atrás
pai
commit
db6743cf3c
1 arquivos alterados com 9 adições e 1 exclusões
  1. +9
    -1
      frappe/tests/ui/test_test_runner.py

+ 9
- 1
frappe/tests/ui/test_test_runner.py Ver arquivo

@@ -10,12 +10,20 @@ class TestTestRunner(unittest.TestCase):
if test.startswith('#'):
continue
print('Running {0}...'.format(test))

timeout = 60
if '#' in test:
test, comment = test.split('#')
test = test.strip()
if comment=='long':
timeout = 240

frappe.db.set_value('Test Runner', None, 'module_path', test)
frappe.db.commit()
driver.refresh()
driver.set_route('Form', 'Test Runner')
driver.click_primary_action()
driver.wait_for('#frappe-qunit-done', timeout=60)
driver.wait_for('#frappe-qunit-done', timeout=timeout)
console = driver.get_console()
if frappe.flags.tests_verbose or True:
for line in console:


Carregando…
Cancelar
Salvar