Skip to content

Instantly share code, notes, and snippets.

@bikeshedder
Created May 3, 2013 13:45
Show Gist options
  • Save bikeshedder/5509187 to your computer and use it in GitHub Desktop.
Save bikeshedder/5509187 to your computer and use it in GitHub Desktop.
Selenium writes a verbose log to stdout when run via setuptools test command.
#!/usr/bin/env python
from setuptools import setup
setup(
test_suite='tests',
setup_requires=['selenium']
)
#!/usr/bin/env python
from selenium import webdriver
import unittest
class SeleniumUnitTest(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Firefox()
def tearDown(self):
self.browser.close()
def test_load(self):
self.browser.get('http://terreon.de/')
if __name__ == '__main__':
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment