Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Quality Assurance and Testing

    pytest-incremental 0.2.0

    Download button

    No screenshots available
    Downloads: 167  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Eduardo Naufel Schettino | More programs
    MIT/X Consortium Lic... / FREE
    May 10th, 2011, 02:44 GMT
    ROOT / Programming / Quality Assurance and Testing

     Read user reviews (0)  Refer to a friend  Subscribe

    pytest-incremental description

    An incremental test runner (pytest plugin)

    pytest-incremental is an incremental test runner (pytest plugin).

    What is an "incremental test runner" ?

    When talking about build-tools it is common to refer to the terms:

    - initial (full) build - all files are compiled
    - incremental build (or partial rebuild) - just changed files are compiled
    - no-op build - no files are compiled (none changed since last execution)

    So an "incremental test runner" will only re-execute tests that were affected by changes in the source code since last test execution.

    How it works ?

    pytest-incremental is a pytest plugin. So if you can run your test suite with pytest you can use pytest-incremental.

    The plugin will analyse your python source files and through its imports define the dependencies of the modules. doit 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.

    Install:


    pytest-incremental is tested on python 2.6, 2.7.

    pip install pytest-incremental`

    python setup.py install

    local installation

    You can also just grab the plugin module file and put in your project path. Then enable it (check pytest docs).

    Usage:

    Just pass the parameter --incremental when calling from the command line:

    py.test --incremental

    You can also enable it by default adding the following line to your pytest.ini:

    [pytest]
    addopts = --incremental


    watched packages


    By default all modules collected by pytest will used as dependencies if imported. In order to limit or extend the watched folders you must use the parameter --watch-pkg


    Product's homepage

    Requirements:

    · Python

    Limitations:

    · 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)
    · monkey-patching. (i.e. A imports X. B monkey-patches X. In this case A might depend on B)

      


    TAGS:

    test runner | pytest plugin | pytest | test | runner

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM