Changeset 24:e235afb1bc67 in pyenvjasmine


Ignore:
Timestamp:
Jul 13, 2017, 6:07:22 PM (7 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Updated docs and some test files to reflect the change TestRunner/Runner.

Bumped version to 0.1.7

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • README.rst

    r21 r24  
    1212------------
    1313
    14 You can install pyenvjasmine using pip_ or easy_install_::
     14You can install pyenvjasmine using pip_::
    1515
    1616  pip install pyenvjasmine
    17 
    18 ::
    19 
    20   easy_install pyenvjasmine
    2117
    2218Or you can grab the latest sources and install it from there::
     
    6662
    6763    import unittest
    68     from pyenvjasmine.runner import TestRunner
     64    from pyenvjasmine.runner import Runner
    6965
    7066    class JavaScriptTests(unittest.TestCase):
    7167        def test_my_javascript(self):
    72             runner = TestRunner(
    73                       testdir='/path/to/my/testdir',
    74                       configfile='relative/path/to/configfile')
     68            runner = Runner(
     69                testdir='/path/to/my/testdir',
     70                configfile='relative/path/to/configfile')
    7571            runner.run(capture_output=False)
    7672
     
    8177
    8278    import unittest
    83     from pyenvjasmine.runner import TestRunner
     79    from pyenvjasmine.runner import Runner
    8480
    8581    class JavaScriptTests(unittest.TestCase):
    8682        def test_my_javascript_no_output(self):
    87             runner = TestRunner(
    88                       testdir='/path/to/my/testdir',
    89                       configfile='relative/path/to/configfile')
     83            runner = Runner(
     84                testdir='/path/to/my/testdir',
     85                configfile='relative/path/to/configfile')
    9086            res = runner.run(capture_output=True)
    9187            lines = res.splitlines()
  • pyenvjasmine/tests/test_runner.py

    r10 r24  
    22import os
    33
    4 from pyenvjasmine.runner import TestRunner
     4from pyenvjasmine.runner import Runner
    55
    66
     
    1616        Test the runner, using default values (which wil run the demo specs)
    1717        """
    18         jstests = TestRunner()
     18        jstests = Runner()
    1919        output = jstests.run()
    2020        # output is the resulting stdout from a subprocess call, which is a
     
    3131        conf_file = os.path.join(sample, 'configfile.js')
    3232        envjasmine_dir = os.path.join(os.path.dirname(here), 'envjasmine')
    33         jstests = TestRunner(
     33        jstests = Runner(
    3434            rootdir=envjasmine_dir,
    3535            testdir=sample,
     
    5656        browser_conf_file = os.path.join(sample, 'browser.configfile.js')
    5757        envjasmine_dir = os.path.join(os.path.dirname(here), 'envjasmine')
    58         jstests = TestRunner(
     58        jstests = Runner(
    5959            rootdir=envjasmine_dir,
    6060            testdir=sample,
     
    7575        browser_conf_file = os.path.join(sample, 'browser.configfile.js')
    7676        envjasmine_dir = os.path.join(os.path.dirname(here), 'envjasmine')
    77         jstests = TestRunner(
     77        jstests = Runner(
    7878            rootdir=envjasmine_dir,
    7979            testdir=sample,
     
    105105        Running a test without capturing output
    106106        """
    107         jstests = TestRunner()
     107        jstests = Runner()
    108108        output = jstests.run(capture_output=False)
    109109        self.assertEqual(output, None)
  • setup.py

    r22 r24  
    22from distutils.core import setup
    33
    4 version = '0.1.6'
     4version = '0.1.7'
    55
    66requires = [
Note: See TracChangeset for help on using the changeset viewer.