From d32e4168e36d7724b46e3327e41bfd5444dca0f6 Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Fri, 24 Jan 2025 19:34:28 -0500 Subject: [PATCH] Update the docs --- help_docs/customizing_test_runs.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/help_docs/customizing_test_runs.md b/help_docs/customizing_test_runs.md index 458a1828..615960ab 100644 --- a/help_docs/customizing_test_runs.md +++ b/help_docs/customizing_test_runs.md @@ -337,6 +337,22 @@ pytest --headless -n8 --dashboard --html=report.html -v --rs --crumbs The above not only runs tests in parallel processes, but it also tells tests in the same process to share the same browser session, runs the tests in headless mode, displays the full name of each test on a separate line, creates a real-time dashboard of the test results, and creates a full report after all tests complete. +🎛️ For extra speed, run your tests using `chrome-headless-shell`: + +First, get `chrome-headless-shell` if you don't already have it: + +```bash +sbase get chs +``` + +Then, run scripts with `binary_location` / `bl` set to `"chs"`: + +```bash +pytest --bl="chs" -n8 --dashboard --html=report.html -v --rs +``` + +That makes your tests run very quickly in headless mode. + --------

The SeleniumBase Dashboard: