Skip to content

Experiment with running headless Firefox in parallel #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _aliases:
paths:
- results
- &nightly
env: FIREFOX=nightly
env: FIREFOX=nightly PYTEST_ADDOPTS=-n=8
addons:
<<: *artifacts
firefox: latest-nightly
Expand Down
6 changes: 1 addition & 5 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
[[source]]

url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"


[packages]

selenium = "==3.11.0"


[dev-packages]

coveralls = "==1.3.0"
flake8 = "==3.5.0"
flake8-docstrings = "==1.3.0"
flake8-isort = "==2.5"
pytest = "==3.5.0"
pytest-cov = "==2.5.1"
pytest-selenium = "==1.12.0"
pytest-xdist = "==1.22.2"
2 changes: 1 addition & 1 deletion tests/webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def translate_path(self, path):
class WebServer(object):
"""Web server for serving local files within the /web directory."""

def __init__(self, host='', port=8000):
def __init__(self, host='', port=0):
"""Set up web server.

Args:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ envlist = py{27,36}, flake8, docs

[testenv]
recreate = True
passenv = DISPLAY MOZ_HEADLESS TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
passenv = DISPLAY MOZ_HEADLESS PYTEST_ADDOPTS TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps = pipenv
commands =
pipenv install --dev --skip-lock
Expand Down