Page 1 of 1

Using Ant to run XSpec unit tests

Posted: Wed Aug 09, 2023 8:29 pm
by scottbdr
Is it possible to use Ant to run multiple XSpec tests in OxygenXML? Ideally would like to be able to run a suite of tests, i.e. not just one at a time using a transform scenario. I know it's possible using Ant/XSpec directly: https://github.com/xspec/xspec/wiki/Running-with-Ant. Just wondering if it is somehow facilitated by Oxygen.

Thanks, Scott

Re: Using Ant to run XSpec unit tests

Posted: Fri Aug 11, 2023 12:16 pm
by alex_jitianu
Hi,

From the Project view, you can invoke the contextual menu over a directory containing xspec files and select Transform->Apply transformation Scenarios.... All xspec files from that directory will be run. Alternatively, you could create a driver xpec file that imports multiple xspec files and run this master file.

Best regards,
Alex

Re: Using Ant to run XSpec unit tests

Posted: Fri Aug 11, 2023 6:45 pm
by scottbdr
Well, in hind site that seems pretty obvious. Not sure why that didn't come to me the other day but thanks for that!

Scott