splinter icon indicating copy to clipboard operation
splinter copied to clipboard

Tests are broken when running tox

Open medecau opened this issue 6 years ago • 7 comments

I have tried to run the tests using tox. Tried on py36, py37, and py38, all produce the following error.

___ ERROR collecting samples/test_google_search.py ___ samples/test_google_search.py:35: in <module> unittest.main() ../../.pyenv/versions/3.6.10/lib/python3.6/unittest/main.py:95: in __init__ self.runTests() ../../.pyenv/versions/3.6.10/lib/python3.6/unittest/main.py:258: in runTests sys.exit(not self.result.wasSuccessful()) E SystemExit: False

medecau avatar May 22 '20 12:05 medecau

Most likely, you ran tox without any arguments and picked up the samples directory.

javascript-error avatar May 22 '20 13:05 javascript-error

I had to run tox -- tests in order to get pytest to pick only the tests folder.

The tests are now running up to 48% where they hang-up and do not seem to progress. The hanging test seems to be: tests/test_webdriver_firefox.py::FirefoxBrowserTest::test_access_confirm_and_accept_and_dismiss_them Last HTTP request being: 127.0.0.1 - - [23/May/2020 20:20:20] "GET /alert HTTP/1.1" 200 -


It hangs when alert.accept() is called.

medecau avatar May 23 '20 18:05 medecau

What browser/driver/OS versions are you using?

javascript-error avatar May 23 '20 22:05 javascript-error

macOS Mojave 10.14.6 geckodriver installed from brew Firefox 76.0.1

$uname -mpsr
Darwin 18.7.0 x86_64 i386
$brew info geckodriver             
geckodriver: stable 0.26.0 (bottled), HEAD
WebDriver <-> Marionette proxy
[...]

medecau avatar May 24 '20 03:05 medecau

Looks like the tests are failing on the latest version of Firefox, CI is hard-coded to Firefox 68 so it went undetected.

javascript-error avatar May 31 '20 13:05 javascript-error

Thank you for looking into this

medecau avatar Jun 01 '20 08:06 medecau

Firefox failures fixed by #782

javascript-error avatar Jul 08 '20 17:07 javascript-error