>I assume that the execution of unit tests takes quite a lot of time in
your setup, right?

Sometimes :-) But my motivation is to run tests initiated from a http RestXQ request and capture the result.
If something like the below is safe that would do me.
Does this count as "a single-threaded execution of unit tests"?


let $q:=``[
  declare variable $basex:="C:\Program Files (x86)\BaseX\bin\basex.bat";

  let $c:="C:\Users\andy\ ... \test\"
  return proc:system($basex,("-t","."), map{"dir":$c})
]``
return jobs:eval($q,(),map { 'cache': true()})

/Andy

On 4 January 2017 at 15:21, Christian Grün <christian.gruen@gmail.com> wrote:
Hi Andy,

Thanks for the suggestion.

> jobs:test-uris($uris as xs:string*, $options as map(xs:string, xs:string))
> as xs:string

An interesting idea… However, I think this would currently cause
various problems as long as a single-threaded execution of unit tests
is not provided. As an alternative, I could think about running unit
tests in parallel, even if not started from within XQuery.

I assume that the execution of unit tests takes quite a lot of time in
your setup, right?

Cheers,
Christian


> Asynchronously runs all functions in the specified modules that have unit
> annotations.A test report
>  is generated and  optionally cached, which resembles the format returned by
> other xUnit testing
> frameworks, such as the Maven Surefire Plugin.
>
> returns a job id
>
> /Andy
>