If there are multiple XQuery Moduls (testsuites) with references to a module variable X in a helper xqy File, will the variable X be created for each XQuery Modul or only once when it is used the first time in any of the XQuery modules?
If several of your modules import the same library module that contains a variable declaration, the library module will be parsed and compiled multiple times. Does this answer your question?
On Fri, May 17, 2019 at 10:45 AM Markus Schmid schmid45@t-online.de wrote:
I see. Thank you for the quick response.
If there are multiple XQuery Moduls (testsuites) with references to a module variable X in a helper xqy File, will the variable X be created for each XQuery Modul or only once when it is used the first time in any of the XQuery modules?
Thank you.
Markus
Am 17.05.2019 um 09:16 schrieb Christian Grün christian.gruen@gmail.com:
Hi Markus,
Yes, that’s possible: If you specify a directory as argument, all XQuery modules in that directory will be parsed, and a testsuite element will be created for each module that contains tests. See [1] for more information.
Best, Christian
[1] http://docs.basex.org/wiki/Commands#TEST
On Fri, May 17, 2019 at 8:57 AM Markus Schmid schmid45@t-online.de wrote:
Hi
is it possible to run multiple testsuites with one TEST command call from the basex console? Or is there always only one <testsuite> element in the <testsuites> result?
Markus