瀏覽代碼

fix(tests): Raise CalledProcessError if run-ui-test errors

version-14
Aditya Hase 5 年之前
父節點
當前提交
8a3c5a8c51
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/commands/utils.py

+ 1
- 1
frappe/commands/utils.py 查看文件

@@ -478,7 +478,7 @@ def run_ui_tests(context, app, headless=False):
run_or_open = 'run' if headless else 'open'
command = '{site_env} {password_env} yarn run cypress {run_or_open}'
formatted_command = command.format(site_env=site_env, password_env=password_env, run_or_open=run_or_open)
frappe.commands.popen(formatted_command, cwd=app_base_path)
frappe.commands.popen(formatted_command, cwd=app_base_path, raise_err=True)

@click.command('run-setup-wizard-ui-test')
@click.option('--app', help="App to run tests on, leave blank for all apps")


Loading…
取消
儲存