You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
456 B

4 years ago
  1. import hex.unittest.notifier.*;
  2. import hex.unittest.runner.*;
  3. using Lambda;
  4. class Main
  5. {
  6. static function main() {
  7. var arg = Sys.args()[0];
  8. var mysqlConnection = (arg != null && arg.substr(0,8)=="mysql://") ? arg : null;
  9. var emu = new ExMachinaUnitCore();
  10. emu.addListener(new ConsoleNotifier(false));
  11. emu.addListener(new ExitingNotifier());
  12. if(mysqlConnection!=null) emu.addTest(MySQLTest);
  13. emu.addTest(SQLiteTest);
  14. emu.run();
  15. }
  16. }