While we’re on the topic of JavaScript and the Arquillian Universe, why not run Arquillian Core ++ in JavaScript?
Based on the ShrinkWrap Resovler JS version mentioned here; ShrinkWrap Resolver in JavaScript via Nashorn we can dynamically bootstrap Arquillian and start any of the containers and extensions. The code can be seen found here https://github.com/aslakknutsen/arquillian-script-javascript
Some of the interesting parts:
-
ShrinkWrap Resolver Bootstrap: https://github.com/aslakknutsen/arquillian-script-javascript/blob/master/arquillian.js#L8
-
Usage: https://github.com/aslakknutsen/arquillian-script-javascript/blob/master/index.js
The example loads Core + Chameleon and deploys some Archive to a WildFly instance and get’s the target URL returned.