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

    Lunit 0.5

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Michael Roth | More programs
    MIT/X Consortium Lic... / FREE
    November 22nd, 2009, 03:34 GMT [view history]
    ROOT / Programming / Quality Assurance and Testing

     Read user reviews (0)  Refer to a friend  Subscribe

    Lunit description

    Unit Testing Framework for Lua

    Lunit is a unit testing framework for Lua, written in Lua. It provides currently 27 assert functions, 8 type checking functions and a few miscellaneous functions for usage as an easy unit testing framework.

    To run Lunit you will need Lua 5.1 or higher. To find out more about Lua, please take a look at The Programming Language Lua.

    Example:

    The example file "my_testcase.lua" with the following content:

    require "lunit"

    module( "my_testcase", lunit.testcase )

    function test_success()
     assert_false( false, "This test never fails.")
    end

    function test_failure()
     fail( "This test always fails!" )
    end

    Run with the shell script "lunit" produces the following output:

    # ./lunit my_testcase.lua
    Loaded testsuite with 2 tests in 1 testcases.


     F.

    2 Assertions checked.

     1) Failure (my_testcase.test_failure):
    my_testcase.lua:10: failure
    my_testcase.lua:10: This test always fails!

    Testsuite finished (1 passed, 1 failed, 0 errors).



    Product's homepage

    Requirements:

    · Lua

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

    · This release adds the function assert_match_error() and should be more compatible with Darwin and Mac OS X. A few bugs were fixed.

    · Lunit is quite stable in the meantime.

      


    TAGS:

    unit testing | testing framework | Lua testing | unit | testing | Lua

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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