Commits

eduardo schettino committed 7da1ef0

bump version number & update docs.

  • Participants
  • Parent commits 656c852

Comments (0)

Files changed (3)

 Changes
 =======
 
-0.2.0
-=========
+0.2.0 (*2011-05-07*)
+=====================
 
+- added option --graph-dependencies
 - support for xdist --dist=load
 - added option --list-dependencies
 - added option --list-outdated
 pytest-incremental
 ====================
 
-an incremental test runner (pytest plugin)
+an incremental test runner (pytest plug-in)
 
 
 What is an "incremental test runner" ?
 How it works ?
 ================
 
-`pytest-incremental` is a `pytest <http://pytest.org/>`_ plugin. So if you can run your test suite with pytest you can use `pytest-incremental`.
+`pytest-incremental` is a `pytest <http://pytest.org/>`_ plug-in. So if you can run your test suite with pytest you can use `pytest-incremental`.
 
-Note that pytest has support to run standart unittest's and nose's tests. So even if you dont use pytest as a test framework you might be able to use it as a test runner.
+Note that pytest has support to run standard unittest's and nose's tests. So even if you don't use pytest as a test framework you might be able to use it as a test runner.
 
-The plugin will analyse your python source files and through its imports define the dependencies of the modules. `doit <http://python-doit.sourceforge.net>`_ is used to keep track of the dependencies and save results. The plugin will modify how pytest collect your tests. pytest do the rest of the job of actually running the tests and reporting the results.
+The plug-in will analyze your python source files and through its imports define the dependencies of the modules. `doit <http://python-doit.sourceforge.net>`_ is used to keep track of the dependencies and save results. The plug-in will modify how pytest collect your tests. pytest do the rest of the job of actually running the tests and reporting the results.
 
 
 Install
 local installation
 --------------------
 
-You can also just grab the plugin `module <https://bitbucket.org/schettino72/pytest-incremental/src/tip/pytest_incremental.py>`_ file and put in your project path. Then enable it (check `pytest docs <http://pytest.org/plugins.html#requiring-loading-plugins-in-a-test-module-or-conftest-file>`_).
+You can also just grab the plug-in `module <https://bitbucket.org/schettino72/pytest-incremental/src/tip/pytest_incremental.py>`_ file and put in your project path. Then enable it (check `pytest docs <http://pytest.org/plugins.html#requiring-loading-plugins-in-a-test-module-or-conftest-file>`_).
 
 
 Usage
 
  $ py.test --list-dependencies
 
+for better visualization you can create a graph file in "dot" format (see `graphviz <http://www.graphviz.org/>`_ ::
+
+ $ py.test --graph-dependencies
+ $ dot -Tpng -o imports.png imports.dot
+
 
 You can also check what are the outdated tests without executing them::
 
 
  * `from package import *` modules imported from __all__ in a package are not counted as a dependency
  * modules imported not using the *import* statement
- * modules not explictitly imported but used at runtime (i.e. conftest.py when running your tests with pytest)
+ * modules not explicitly imported but used at run-time (i.e. conftest.py when running your tests with pytest)
  * monkey-patching. (i.e. A imports X.  B monkey-patches X. In this case A might depend on B)
  * others ?
 

File pytest_incremental.py

 Copyright (c) 2011 Eduardo Naufel Schettino
 """
 
-__version__ = (0, 1, 0)
+__version__ = (0, 2, 0)
 
 import os
 import sys