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.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Quality Assurance and Testing

    rgf 0.2.0.1

    Download button

    No screenshots available
    Downloads: 133  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Matt Patterson | More programs
    MIT/X Consortium Lic... / FREE
    May 21st, 2012, 13:49 GMT [view history]
    ROOT / Programming / Quality Assurance and Testing

     Read user reviews (0)  Refer to a friend  Subscribe

    rgf description

    A BDD framework for writing and running specs

    rgf is a currently experimental attempt at an RSpec-esque BDD testing framework for Python.

    Basically we're aiming for syntax along these lines:

    from rgf import describe, it

    with describe("That Thing"):
     @it("test desc")
     def spec(context):
     # test code here
     assert stuff()


    x_spec.py files go in a directory structure under, by convention, spec/ in the root of your project and are run using:

    rgf spec


    The specifics of the syntax are currently wrong, being borrowed directly from RSpec. Suggestions warmly received.

    (Current front-runners are subject and context in place of describe, keeping it for the spec decorator.)

    Because the spec functions are just functions, not methods, and are hoovered up by the @it decorator they're effectively anonymous and can all have the same name for ease of thinking:

    with subject('This Class'):
     @it('can calculate X')
     def s(world):
     pass

     @it('can account for Y')
     def s(world):
     pass


    The aim is for something pythonic, with nested context and good spec names being the primary focus: minimum magic, minimum fuss.


    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Bump to update the Changelog, which I had neglected to do for 0.2.0 (sorry)

      


    TAGS:

    BDD framework | BDD testing | testing framework | BDD | testing | framework

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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