Re: Unit testing

"Per Hedbor () @ Pike (-) importm?te f?r mailinglistan" <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
> I have no idea how the -x Tools works internally, but it sound like
> a great idea.

It is simply the files in lib/modules/Tools.pmod/Standalone.pmod.

> Can you hook into the -x Tools from outisde? Like how you can add
> plugins to git without extending git.

Well, not without adding a directory to the module path, using either
arguments to pike (but then it is easier to simply just have
#!/bin/env pike as the first line of the tool and chmod +x, really.)
or the PIKE_MODULE_PATH variable (again, not very convenient)

You can simply copy your file to the installed pike, of course, 
/<prefix>/pike/<version>/lib/modules/Tools.pmod/Standalone.pmod

But having a test framework included with pike makes sense, really.

And I agree that the current m4 testsuite framework is not exactly
convenient or readable. It is also rather pointless, really, why
include m4 at all?

Pike can do the parsing if parsing is needed.

-- 
Per Hedbor
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.