mitro-co / mitro

Repository for all Mitro client & server code
GNU General Public License v3.0
1.64k stars 242 forks source link

browser-ext/login tests failed #87

Open denadai2 opened 10 years ago

denadai2 commented 10 years ago

I did not make any modification, just cloned and followed these steps

Cleaning up...
/usr/bin/xclip
Traceback (most recent call last):
  File "chrome/test.py", line 1749, in <module>
main()
  File "chrome/test.py", line 1691, in main
driver = create_chromedriver(_WEBDRIVER_PATH, [args.extension_path])
  File "chrome/test.py", line 1664, in create_chromedriver
chrome_options=options)
  File "/home/marco/Desktop/mitro/browser-ext/login/test/build/venv/local/lib/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 64, in __init__
desired_capabilities=desired_capabilities)
  File "/home/marco/Desktop/mitro/browser-ext/login/test/build/venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 72, in __init__
self.start_session(desired_capabilities, browser_profile)
  File "/home/marco/Desktop/mitro/browser-ext/login/test/build/venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 114, in start_session
'desiredCapabilities': desired_capabilities,
  File "/home/marco/Desktop/mitro/browser-ext/login/test/build/venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 165, in execute
self.error_handler.check_response(response)
  File "/home/marco/Desktop/mitro/browser-ext/login/test/build/venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 158, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: u'unknown error: unable to discover open pages\n  (Driver info: chromedriver=2.2,platform=Linux 3.13.0-39-generic x86_64)' 
make: *** [test] Error 1
evanj commented 10 years ago

This looks like this is from the selenium tests, right? They have sadly been broken for a while. Running ./runtests.sh in that directory should work though. Let me know if ./runtests.sh fails.

denadai2 commented 10 years ago

I found this during the "make" command

evanj commented 10 years ago

Oh yeah, that's a bug. Use "make debug" or "make release". I think "make" attempts to run the selenium tests.