在添加一些tox
测试后运行selenium
测试时,travis中出现错误。我试图遵循Travis文档here。但是,我收到了这个错误:
selenium.common.exceptions.WebDriverException: Message: The browser appears to have exited before we could connect.
以下是我的.travis.yml
文件。任何想法为什么这不会起作用?这是我正在运行的example of the test case(来自另一个问题)。
language: python
python: 3.5
sudo: false
env:
- TOX_ENV=py34-django18
# many more environments follow
install:
- pip install tox coveralls
script:
- tox -e $TOX_ENV
after_success: coveralls
before_install:
- "export DISPLAY=:99.0"
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"