Skip to content

Commit

Permalink
bumped version to 0.3. also updated README and HISTORY
Browse files Browse the repository at this point in the history
  • Loading branch information
Miroslav Shubernetskiy committed Feb 19, 2017
1 parent a49d5e7 commit 0fea04f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
13 changes: 13 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
History
-------

0.3.0 (2017-02-18)
~~~~~~~~~~~~~~~~~~

* **New** ``--skipnose-include`` clauses now can either be ANDed or ORed.

ANDed example::

--skipnose-include=foo --skipnose-include=bar

ORed example::

--skipnose-include=foo:bar

0.2.0 (2016-02-24)
~~~~~~~~~~~~~~~~~~

Expand Down
33 changes: 30 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ tests are executed.
Using
-----

Plugin adds 3 configuration options to nosetests:
Plugin adds 3 configuration options to ``nosetests``:

``--with-skipnose``
Required option to enable ``skipnose`` plugin functionality.
Expand Down Expand Up @@ -55,14 +55,41 @@ Plugin adds 3 configuration options to nosetests:

``--skipnose-include``
This option specifies using glob pattern the only folders nosetests
should run. This option can also be provided multiple times and
alternatively can be provided as a ``[,;:]``-delimited
should run. This option can also be provided multiple times.
Each given parameter clause will be ANDed.
Within each parameter ``:`` delimited clauses will be ORed.
In addition this parameter can be provided as a ``[,;:]``-delimited (``[,;]`` for AND and ``[:]`` for OR)
``NOSE_SKIPNOSE_INCLUDE`` environment variable::

$ nosetests --with-skipnose --skipnose-include=foo3 --skipnose-include=sub2foo?
$ # is equivalent to
$ NOSE_SKIPNOSE_INCLUDE=foo3,sub2foo? nosetests --with-skipnose

which would result in only the following folders being included in the tests::

tests/
foo1/
sub1foo1/
...
sub2foo1/
...
foo2/
sub1foo2/
...
sub2foo2/
...
foo3/ <= only this will run
sub1foo3/
...
sub2foo3/ <= only this will run
...

Here is an example when clauses are ORed::

$ nosetests --with-skipnose --skipnose-include=foo3:sub2foo?
$ # is equivalent to
$ NOSE_SKIPNOSE_INCLUDE=foo3:sub2foo? nosetests --with-skipnose

which would result in only the following folders being included in the tests::

tests/
Expand Down
2 changes: 1 addition & 1 deletion skipnose/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

__author__ = 'Miroslav Shubernetskiy'
__email__ = '[email protected]'
__version__ = '0.2.0'
__version__ = '0.3.0'

0 comments on commit 0fea04f

Please sign in to comment.