Changeset 40:f4140b9f7311 in pyenvjasmine


Ignore:
Timestamp:
Apr 3, 2018, 1:41:17 PM (7 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Bumped version to 0.3.0
Added CHANGES.rst with release info
Updated README.rst with new install/deps/use information for the new release

Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • README.rst

    r26 r40  
    3131   https://packaging.python.org/en/latest/distributing.html#working-in-development-mode
    3232
     33.. warning::
     34
     35   Starting with version **0.3.0**, pyenvjasmine has support to run tests with
     36   different browsers/engines. The headless browser rhino is included with
     37   pyenvjasmine, but in order to use the other engines, you have to install the
     38   needed browser(s).
     39
     40   Right now, only phantomjs_ is supported, so ensure you have it installed if
     41   you want to use that browser/engine to run tests on. **Required if you want
     42   to run tests on jasmine 3.x** (also required to run pyenvjasmine's own
     43   tests).
     44
    3345
    3446Running pyenvjasmine tests
     
    3648
    3749To run the tests on this code here (as opposed to *your* JavaScript code you
    38 want to test), install pyenvjasmine and then run::
     50want to test), install pyenvjasmine (and phantomjs) and then run::
    3951
    4052  py.test
     
    5870            runner = Runner(
    5971                testdir='/path/to/my/testdir',
    60                 configfile='relative/path/to/configfile')
     72                configfile='relative/path/to/configfile',
     73                testing_environment='phantomjs')
    6174            success, stdout = runner.run()
    6275            # assert on success, will be true if tests passed, False if any
    6376            # test failed
    64             assert success
     77            assert success, "One or more javascript tests have failed"
    6578            # you can inspect stdout if you want to get more info, but it
    6679            # will be printed to the console stdout anyway
    6780            assert b'Total: 120' in stdout
    6881
     82In this example, the *phantomjs* browse/engine is used, replace that with
     83*rhino* to run tests on rhino + jasmine 1.x.
     84
     85.. note::
     86
     87   *phantomjs* is the preferred browser/engine, so it is what pyenvjasmine
     88   will use as a default if you don't set *testing_environment* when creating
     89   a new *Runner* instance.
    6990
    7091.. _envjasmine : https://github.com/trevmex/EnvJasmine
    7192.. _pip: http://www.pip-installer.org/en/latest/index.html
    7293.. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall
     94.. _phantomjs: http://phantomjs.org
  • setup.py

    r37 r40  
    22from distutils.core import setup
    33
    4 version = '0.2.1'
     4version = '0.3.0'
    55
    66requires = [
Note: See TracChangeset for help on using the changeset viewer.