[Checkins] SVN: zc.selenium/branches/wosc-zope2/src/zc/selenium/selenium.py complain if no tests were run at all

Wolfgang Schnerring wosc at wosc.de
Tue Feb 17 05:16:38 EST 2009


Log message for revision 96634:
  complain if no tests were run at all
  

Changed:
  U   zc.selenium/branches/wosc-zope2/src/zc/selenium/selenium.py

-=-
Modified: zc.selenium/branches/wosc-zope2/src/zc/selenium/selenium.py
===================================================================
--- zc.selenium/branches/wosc-zope2/src/zc/selenium/selenium.py	2009-02-17 10:08:40 UTC (rev 96633)
+++ zc.selenium/branches/wosc-zope2/src/zc/selenium/selenium.py	2009-02-17 10:16:37 UTC (rev 96634)
@@ -118,6 +118,12 @@
     if exit_now:
         return False
 
+    if int(results['numTestPasses']) == 0:
+        print
+        print "no tests were run"
+        print
+        return False
+
     print
     print 'Selenium test result:', results['result']
     if results['result'] != 'passed':



More information about the Checkins mailing list