Created
May 3, 2013 13:45
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from setuptools import setup | |
setup( | |
test_suite='tests', | |
setup_requires=['selenium'] | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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