|
|
|
Re: Getting coverage information using Junit plugin [message #1836632 is a reply to message #1836631] |
Sun, 10 January 2021 12:56 |
|
Hi Kieran,
You can hook into the execution of Epsilon programs as shown below (for ETL you should replace EolModule with EtlModule). That should give you all the information you need to implement such a tool.
public static void main(String[] args) throws Exception {
EolModule module = new EolModule();
module.parse("for (i in 1.to(10)) { i.println(); }");
module.getContext().getExecutorFactory().addExecutionListener(new IExecutionListener() {
@Override
public void finishedExecutingWithException(ModuleElement me, EolRuntimeException exception, IEolContext context) {}
@Override
public void finishedExecuting(ModuleElement me, Object result, IEolContext context) {
System.out.println(me);
}
@Override
public void aboutToExecute(ModuleElement me, IEolContext context) {}
});
module.execute();
}
Thanks,
Dimitris
[Updated on: Sun, 10 January 2021 17:29] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03697 seconds