Hi Benoit, Currently there is no way to test locally with everything runs in the same JVM process. However, we do have a "TwillTester" class that can helps you set up a mini-YARN cluster locally from the unit-test and use it for testing. This is also how YARN related Twill unit tests are executed. You can take a look at that class in
https://github.com/apache/incubator-twill/blob/master/twill-yarn/src/test/java/org/apache/twill/yarn/TwillTester.java To use that class, you'll need to bring in the test-jar artifact. You can refer to https://github.com/apache/incubator-twill/blob/master/twill-java8-test/pom.xml for how to add the dependency and in https://github.com/apache/incubator-twill/blob/master/twill-java8-test/src/test/java/org/apache/twill/test/Java8Test.java on how to use that class. Best regards, Terence On Thu, Jul 30, 2015 at 6:26 AM, Benoit Perroud <[email protected]> wrote: > Hi again, > > Is there a local mode of Twill or something similar that is running the > TwillRunnable in the same JVM as the Twill launcher code? > > I mean, I got TWILL-70, but my intention here is to be able to debug a > TwillRunnable without manual configuration, all in my IDE. > > Thanks > > Benoit
