use of org.kanonizo.display.fx.KanonizoFrame in project kanonizo by kanonizo.
the class Main method main.
public static void main(String[] args) {
Framework fw = Framework.getInstance();
// org.evosuite.Properties.TT = true;
Options options = TestSuitePrioritisation.getCommandLineOptions();
CommandLine line = null;
try {
line = new DefaultParser().parse(options, args, false);
if (TestSuitePrioritisation.hasHelpOption(line)) {
HelpFormatter formatter = new HelpFormatter();
formatter.printHelp("Search Algorithms", options);
return;
}
Reflections r = Util.getReflections();
Set<Field> parameters = r.getFieldsAnnotatedWith(Parameter.class);
TestSuitePrioritisation.handleProperties(line, parameters);
if (MutationProperties.VISIT_MUTANTS) {
InstrumentingClassLoader.getInstance().setVisitMutants(true);
}
setupFramework(line, fw);
} catch (Exception e) {
logger.error(e);
}
Display d = null;
if (!line.hasOption(TestSuitePrioritisation.GUI_SHORT)) {
d = new ConsoleDisplay();
d.initialise();
fw.setDisplay(d);
fw.addSelectionListener((ConsoleDisplay) d);
try {
fw.run();
} catch (Exception e) {
logger.error(e);
e.printStackTrace();
}
// necessary due to random thread creation during test cases (don't do
// this ever again)
java.lang.System.exit(0);
} else {
d = new KanonizoFrame();
d.initialise();
}
}
Aggregations