print to log
@@ -3,6 +3,7 @@ import os
import time
import unittest
import inspect
+from seldom.logging import log
from seldom.driver import browser as b
from seldom.running.HTMLTestRunner import HTMLTestRunner
from seldom.running.config import Seldom, BrowserConfig
@@ -111,13 +112,13 @@ def main(path=None,
with(open(report, 'wb')) as fp:
runner = HTMLTestRunner(stream=fp, title=title, description=description)
- print(seldom_str)
+ log.info(seldom_str)
runner.run(suits, rerun=rerun, save_last_run=save_last_run)
- print("generated html file: file:///{}".format(report))
+ log.info("generated html file: file:///{}".format(report))
else:
runner = unittest.TextTestRunner(verbosity=2)
- print("A run the test in debug mode without generating HTML report!")
- print(seldom_str)
+ log.info("A run the test in debug mode without generating HTML report!")
+ log.info(seldom_str)
runner.run(suits)
"""
