Commit 6c757044 by Ben Patterson

add paver test for bok-choy default command.

parent 08a0c639
import os
import unittest
from pavelib.utils.test.suites.bokchoy_suite import BokChoyTestSuite
REPO_DIR = os.getcwd()
class TestPaverBokChoy(unittest.TestCase):
def test_default_bokchoy(self):
command = BokChoyTestSuite('paver -t test_bokchoy')
expected_output = ("SCREENSHOT_DIR='{repo_dir}/test_root/log' "
"HAR_DIR='{repo_dir}/test_root/log/hars' "
"SELENIUM_DRIVER_LOG_DIR='{repo_dir}/test_root/log' "
"nosetests {repo_dir}/common/test/acceptance/tests "
"--with-xunit "
"--xunit-file={repo_dir}/reports/bok_choy/xunit.xml "
"--verbosity=2 ".format(repo_dir=REPO_DIR))
print expected_output
self.assertTrue(command.cmd == expected_output)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment