Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tweak travis for selenium

  • Loading branch information...
commit 4fb3b92a24c52a9ca95a3e462af6a06e6545bafc 1 parent 9db3ea7
@mnot authored
Showing with 11 additions and 8 deletions.
  1. +6 −6 .travis.yml
  2. +5 −2 test/test_webui.py
View
12 .travis.yml
@@ -1,11 +1,11 @@
language: python
python:
- "2.7"
-# set up X server
-before_script:
- - "export DISPLAY=:99.0"
- - "sh -e /etc/init.d/xvfb start"
-# command to install dependencies
+
+env: "DISPLAY=:99.0"
+
+before_script: sh -e /etc/init.d/xvfb start
+
install: pip install selenium --use-mirrors
-# command to run tests
+
script: "cd test; make -e"
View
7 test/test_webui.py
@@ -49,8 +49,11 @@ class CnnWebUiTest(BasicWebUiTest):
import webui
import thor
def cb():
- unittest.main()
+ suite = unittest.TestLoader()
+ suite.loadTestsFromTestCase(BasicWebUiTest)
+ suite.loadTestsFromTestCase(CnnWebUiTest)
+ unittest.TextTestRunner(verbosity=2).run(suite)
thor.loop.stop()
webui.standalone_main(8080, "deploy/static", cb)
redbot_uri = "http://localhost:8080/"
-
+
Please sign in to comment.
Something went wrong with that request. Please try again.