summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoofar <toofar@spalge.com>2022-07-30 12:38:55 +1200
committertoofar <toofar@spalge.com>2022-09-16 17:13:52 +1200
commitf0bfc9aab2ee9d563cf037f5349fb86bff00dcda (patch)
tree801d81e6dad3ad3dce0543cc7dff6a83f2dbfe26
parente50bc92e9a6c9a9aa1e762155955077de73178ae (diff)
downloadqutebrowser-f0bfc9aab2ee9d563cf037f5349fb86bff00dcda.tar.gz
qutebrowser-f0bfc9aab2ee9d563cf037f5349fb86bff00dcda.zip
Document how to set the backend for the tests.
I only had the old way save in my bash history and this one was only mentioned in the changelog. Also changed the heading above the new entry to be title case, which seems to be more consistent with the other headinfs in the file. Also remove the one remaining mention of `QUTE_BDD_WEBENGINE` since it does nothing anymore.
-rw-r--r--.github/workflows/ci.yml1
-rw-r--r--doc/contributing.asciidoc11
2 files changed, 10 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d38b995c5..55bb16be5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -92,7 +92,6 @@ jobs:
container:
image: "qutebrowser/ci:${{ matrix.image }}"
env:
- QUTE_BDD_WEBENGINE: "${{ matrix.image != 'archlinux-webkit' }}"
DOCKER: "${{ matrix.image }}"
CI: true
PYTEST_ADDOPTS: "--color=yes"
diff --git a/doc/contributing.asciidoc b/doc/contributing.asciidoc
index 70447d8c5..35a72878e 100644
--- a/doc/contributing.asciidoc
+++ b/doc/contributing.asciidoc
@@ -153,7 +153,7 @@ smallest scope which makes sense. Most of the time, this will be line scope.
false-positives, let me know! I'm still tweaking the parameters.
-Running Specific Tests
+Running specific tests
~~~~~~~~~~~~~~~~~~~~~~
While you are developing you often don't want to run the full test
@@ -180,6 +180,15 @@ tox -e py37 -- tests/end2end/features/test_tabs_bdd.py -k undo
tox -e py37-cov -- tests/unit/browser/test_webelem.py
----
+Specifying the backend for tests
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Tests automatically pick the backend based on what they manage to import. If
+you have both backends available and you would like the tests to be run with a
+specific one you can set either of a) the environment variable QUTE_TESTS_BACKEND
+, or b) the command line argument --qute-backend, to the desired backend
+(webkit/webengine).
+
Profiling
~~~~~~~~~