@Override protected AnnotatedBuilder annotatedBuilder() { return new AnnotatedBuilder(this) { @Override public Runner buildRunner(Class<? extends Runner> runnerClass, Class<?> testClass) throws Exception { if (XtextRunner.class.equals(runnerClass)) { return new AllScenariosRunner(testClass, processor, scenarios); } return super.buildRunner(runnerClass, testClass); } }; }