Andreas Kupries | 5 Jul 07:26

Re: Updating Tktest suite - GSoC project


> 3. Individual test's structure
> Furthermore, should I also restructure tests? So that they'd follow the
> pattern that is presented in man tcltest page?
> P.e. message.test. I was advised to work on. As it passes all the tests on
> my current OSes and my friends ones, what should be done with it? This kind?
> 
>     # Current look
> 
>     test message-3.6 {MessageWidgetObjCmd procedure, "configure"} {
>             message .m
>             set result [list [catch {.m configure -foo} msg] $msg]
>             destroy .m
>             set result
>     } {1 {unknown option "-foo"}}
> 
>     # I thought about
>     test message-3.0 {MessageWidgetObjCmd procedure, "cget"} -setup {
>             message .m
>     } -body {
>             .m cget
>     } -cleanup {
>             destroy .m
>     } -returnCodes error -result {wrong # args: should be ".m cget option"}
> 
> There're also are quite often widgets defined and set outside the test case
> and test case that uses the previous settings;
> Sometimes a few tests take advantage of that settings. Should I take care
> for this and turn it into (the same) individual test case setups?

In my (very humble) opinion the second form is superior to the
existing/current form and should be striven for.

Secondly, I believe that the test interdependencies as described are a
bad thing and that the tests should be changed to make all of them
fully self-contained.

Regarding the other points I am currently not able to say much of
anything, not really knowing Tk's testsuite.

--

-- 
So long,
	Andreas Kupries <akupries@...>
			<http://www.purl.org/NET/akupries/>
	Developer @	<http://www.activestate.com/>
-------------------------------------------------------------------------------

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08

Gmane