Skip to content

Commit

Permalink
Run tests in parallel using pytest-xdist (pytest-dev#188)
Browse files Browse the repository at this point in the history
Also marking Firefox extension test as expected to fail due to current incompatibilities with Selenium and web extensions.
  • Loading branch information
BeyondEvil authored and davehunt committed Sep 15, 2018
1 parent 52c8acd commit 497a723
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions testing/test_firefox.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def test_preferences(base_url, selenium):
)


@pytest.mark.xfail(reason="https://github.com/SeleniumHQ/selenium/pull/5069")
def test_extension(testdir):
"""Test that a firefox extension can be added when starting Firefox."""
import os
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ envlist = py{27,36,37,py,py3}, docs, flake8
[testenv]
passenv = DISPLAY PYTEST_ADDOPTS
setenv = MOZ_HEADLESS=1
deps = pytest-localserver
commands = pytest -v -r a {posargs}
deps =
pytest-localserver
pytest-xdist
commands = pytest -n auto -v -r a {posargs}

[testenv:docs]
basepython = python
Expand Down

0 comments on commit 497a723

Please sign in to comment.