Re: Understanding of simpletest utility



surendra wrote:
> I am new to tcl and trying to understand how the following command
> works .
>
> tclsh82 simpletest SimpleProc
>
> can some body expalin me the sequence of events ( how the test file
> SimpleProc-test is evaluated ) that happen till we get the following
> result
>
> [result elided]

Hi Surendra,

simpletest
(http://simpledevlib.sourceforge.net/utilities/simpletest.html) is
The Simple Development Library (http://simpledevlib.sourceforge.net/)
regression testing tool. simpletest uses the SimpleTest package
(http://simpledevlib.sourceforge.net/SimpleTest.html). Those pages
should contain enough info; what follows is a minimal description.

When you type "tclsh82 simpletest SimpleProc" (or just "simpletest
SimpleProc" in Unix) the simpletest program is executed with
"SimpleProc" as argument. simpletest then looks for the regression
testing module of that SimpleProc package, which is expected to be
available as another Tcl package named SimpleProc-test; if found,
simpletest loads that package.

Now, this package is assumed to contain test cases implemented via
the [test-case] command described at
http://simpledevlib.sourceforge.net/SimpleTest.html#section4.10.
After the test cases are run, simpletest produces the appropriate
output on the number of test cases found, run, passed, failed, ignored
and such. In the output you provide, 169 test cases were found and
all of them passed sucessfully!

Don't hesitate to ask further should you need it!

Juan Carlos---

.



Relevant Pages

  • Re: Tcl Automated Unit Test
    ... > The problem is that tcltest is built as an application rather than a ... form of a package with its own API. ... The simpletest application ...
    (comp.lang.tcl)
  • Re: now do you "link" .tcl files?
    ... I think from the position of a newbie, this is how linking in Tcl ... At the time of the call, Tcl looks up the command named "foo" using ... pkgIndex.tcl for a Tcl-only package usually contains ...
    (comp.lang.tcl)
  • Re: now do you "link" .tcl files?
    ... I think from the position of a newbie, this is how linking in Tcl ... To "declare" a .tcl file with some proc's as part of a package ... foobar version 1.0 use this command at the end of the ...
    (comp.lang.tcl)
  • Re: posting a form data /automate IE
    ... If accessing a web page via tcl, ... package require http ... functions to send command to Windows objects. ...
    (comp.lang.tcl)
  • how to append these values?
    ... maxValue" for each x and y values into different lists. ... Is there any command in tcl to apeend as mentioned above for the ... following program in tcl using tDOM package ....... ...
    (comp.lang.tcl)