Skip to content

Commit

Permalink
move to 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanKepner committed Oct 26, 2019
1 parent e65c1af commit 61208e4
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Changelog
Beta Releases
-------------

1.1.0
~~~~~

- Add support for a ``mutatest.ini`` configuration file for command line arguments.


1.0.1
~~~~~

Expand Down
32 changes: 32 additions & 0 deletions docs/commandline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,38 @@ Run ``mutatest --help`` to see command line arguments and supported operations:
--debug Turn on DEBUG level logging output.
--nocov Ignore coverage files for optimization.
Using an INI config file
------------------------
Arguments for ``mutatest`` can be stored in a ``mutatest.ini`` config file in the directory where
you run the command.
Use the full argument names and either spaces or newlines to separate multiple values for a given
argument.
The flag commands (``--debug`` and ``--nocov``) are given boolean flags that can be interpreted by
the Python ``ConfigParser``.
If you have a configuration file any command line arguments passed to ``mutatest`` will override
the values in the ``ini`` file.
Example INI file
~~~~~~~~~~~~~~~~
The contents of an example ``mutatest.ini``:
.. code-block:: ini
[mutatest]
blacklist = nc su sr
exclude =
mutatest/__init__.py
mutatest/_devtools.py
mode = sd
rseed = 567
testcmds = pytest -m 'not slow'
debug = no
nocov = no
.. target-notes::
.. _Pytest Test Layout: https://docs.pytest.org/en/latest/goodpractices.html#choosing-a-test-layout-import-rules
.. _Python AST grammar: https://docs.python.org/3/library/ast.html#abstract-grammar
10 changes: 9 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,15 @@ def find_meta(meta):
#
html_theme = "alabaster"

html_theme_options = {"fixed_sidebar": True}
html_theme_options = {
"show_related": False,
"description": "“Test your tests!”",
"github_button": True,
"github_user": "EvanKepner",
"github_repo": "mutatest",
"github_type": "star",
"fixed_sidebar": True,
}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
Expand Down
2 changes: 1 addition & 1 deletion mutatest/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Mutation initialization.
"""
__version__ = "1.0.1"
__version__ = "1.1.0"

__title__ = "mutatest"
__description__ = "Python mutation testing: test your tests!"
Expand Down

0 comments on commit 61208e4

Please sign in to comment.