add paver test for bok-choy default command.
This commit is contained in:
0
pavelib/tests/__init__.py
Normal file
0
pavelib/tests/__init__.py
Normal file
21
pavelib/tests/test_paver_bok_choy_cmds.py
Normal file
21
pavelib/tests/test_paver_bok_choy_cmds.py
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
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)
|
||||
Reference in New Issue
Block a user