Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Quality Assurance and Testing

    pytest-markfiltration 0.8

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Adam Goucher | More programs
    GPL / FREE
    November 10th, 2011, 02:42 GMT
    ROOT / Programming / Quality Assurance and Testing

     Read user reviews (0)  Refer to a friend  Subscribe

    pytest-markfiltration description

    A plugin that introduces a -f flag for pytest

    The default py.test keyword filtering (-k) is _way_ too broad. You would think that it would be based on the MarkInfo objects that are described alongside the filter option but that would be incorrect. In fact, it chooses the method/function name of the script as well.

    pytest-markfiltration is a plugin that introduces a -f flag for pytest that takes the name of a MarkInfo object to either keep or remove from the collected scripts.

    The syntax is the same as with -k. So...

    To include a script with a MarkInfo object on it

    py.test -f rhino

    And to disclude one

    py.test -f -hippo

    Just like with -k you can do an 'and' collection as well with

    py.test -f "hippo rhino"

    or

    py.test -f "hippo -rhino"

    But the built-in -k does not let you do an 'or' collection. -f does allow for it though through multiple instances of he flag

    py.test -f hippo -f rhino

    and perhaps a silly example of

    py.test -f hippo -f -rhino

    To install, either * pip install pytest-markfiltration * python setup.py install


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    -f flag | pytest plugin | pytest | -f | filtration

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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