Changeset 24:e235afb1bc67 in pyenvjasmine
- Timestamp:
- Jul 13, 2017, 6:07:22 PM (7 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
README.rst
r21 r24 12 12 ------------ 13 13 14 You can install pyenvjasmine using pip_ or easy_install_::14 You can install pyenvjasmine using pip_:: 15 15 16 16 pip install pyenvjasmine 17 18 ::19 20 easy_install pyenvjasmine21 17 22 18 Or you can grab the latest sources and install it from there:: … … 66 62 67 63 import unittest 68 from pyenvjasmine.runner import TestRunner64 from pyenvjasmine.runner import Runner 69 65 70 66 class JavaScriptTests(unittest.TestCase): 71 67 def test_my_javascript(self): 72 runner = TestRunner(73 74 68 runner = Runner( 69 testdir='/path/to/my/testdir', 70 configfile='relative/path/to/configfile') 75 71 runner.run(capture_output=False) 76 72 … … 81 77 82 78 import unittest 83 from pyenvjasmine.runner import TestRunner79 from pyenvjasmine.runner import Runner 84 80 85 81 class JavaScriptTests(unittest.TestCase): 86 82 def test_my_javascript_no_output(self): 87 runner = TestRunner(88 89 83 runner = Runner( 84 testdir='/path/to/my/testdir', 85 configfile='relative/path/to/configfile') 90 86 res = runner.run(capture_output=True) 91 87 lines = res.splitlines() -
pyenvjasmine/tests/test_runner.py
r10 r24 2 2 import os 3 3 4 from pyenvjasmine.runner import TestRunner4 from pyenvjasmine.runner import Runner 5 5 6 6 … … 16 16 Test the runner, using default values (which wil run the demo specs) 17 17 """ 18 jstests = TestRunner()18 jstests = Runner() 19 19 output = jstests.run() 20 20 # output is the resulting stdout from a subprocess call, which is a … … 31 31 conf_file = os.path.join(sample, 'configfile.js') 32 32 envjasmine_dir = os.path.join(os.path.dirname(here), 'envjasmine') 33 jstests = TestRunner(33 jstests = Runner( 34 34 rootdir=envjasmine_dir, 35 35 testdir=sample, … … 56 56 browser_conf_file = os.path.join(sample, 'browser.configfile.js') 57 57 envjasmine_dir = os.path.join(os.path.dirname(here), 'envjasmine') 58 jstests = TestRunner(58 jstests = Runner( 59 59 rootdir=envjasmine_dir, 60 60 testdir=sample, … … 75 75 browser_conf_file = os.path.join(sample, 'browser.configfile.js') 76 76 envjasmine_dir = os.path.join(os.path.dirname(here), 'envjasmine') 77 jstests = TestRunner(77 jstests = Runner( 78 78 rootdir=envjasmine_dir, 79 79 testdir=sample, … … 105 105 Running a test without capturing output 106 106 """ 107 jstests = TestRunner()107 jstests = Runner() 108 108 output = jstests.run(capture_output=False) 109 109 self.assertEqual(output, None) -
setup.py
r22 r24 2 2 from distutils.core import setup 3 3 4 version = '0.1. 6'4 version = '0.1.7' 5 5 6 6 requires = [
Note:
See TracChangeset
for help on using the changeset viewer.