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

    unittest_jshint 1.0

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Rok Garbas | More programs
    BSD License / FREE
    May 15th, 2012, 05:26 GMT
    ROOT / Programming / Quality Assurance and Testing

     Read user reviews (0)  Refer to a friend  Subscribe

    unittest_jshint description

    Python unittest integration for jshint

    unittest_jshint is a tool that integrates JSHint with Python's unittest module. This package was inspired by gocept.jslint.

    JSHint is a community-driven tool to detect errors and potential problems in JavaScript code and to enforce your team's coding conventions.

    It provides a special JSHintTestCase class that collects JavaScript files (in a configurable manner) and dynamically generates a test method for each file that calls jslint on that file.

    Usage

    To use it, create a test class like this::

        class MyPackageJSLintTest(unittest_jshint.JSHintTestCase):

            include = (
                'my.package.browser:js',
                'my.package.browser:js/lib',
                )

            options = ( 'curly', 'eqeqeq', )


    include is a list of "resource paths" of the form packagename:path (passed to pkg_resources).

    exclude can be a list of filenames (without path) that will not be collected.

    options is a list of arguments that are passed to JSHint (see its documentation for details). The default value is::

        options = ()

    All files ending in .js contained in each of these paths will be collected, and the test class will grow a method named test_< filename >.js.

    You can ignore JSHint error by setting ignore on the test class (a list of substrings that are matched against each JHLint output line):

        ignore = (
            "Use a named parameter",
            )



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    unittest integration | jshint unittest | Python | jshint | unittest

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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