Sha256: 51cdd1ca466c962e19267e89b55a5f1a712270e5e22ae6d80b6fe1238e5c4bc6
Contents?: true
Size: 1.57 KB
Versions: 792
Compression:
Stored size: 1.57 KB
Contents
import massive.munit.client.PrintClient; import massive.munit.client.RichPrintClient; import massive.munit.client.HTTPClient; import massive.munit.client.JUnitReportClient; import massive.munit.client.SummaryReportClient; import massive.munit.TestRunner; #if js import js.Lib; #end /** * Auto generated Test Application. * Refer to munit command line tool for more information (haxelib run munit) */ class TestMain { static function main(){ new TestMain(); } public function new() { var suites = new Array<Class<massive.munit.TestSuite>>(); suites.push(TestSuite); #if MCOVER var client = new mcover.coverage.munit.client.MCoverPrintClient(); var httpClient = new HTTPClient(new mcover.coverage.munit.client.MCoverSummaryReportClient()); #else var client = new RichPrintClient(); var httpClient = new HTTPClient(new SummaryReportClient()); #end var runner:TestRunner = new TestRunner(client); runner.addResultClient(httpClient); //runner.addResultClient(new HTTPClient(new JUnitReportClient())); runner.completionHandler = completionHandler; runner.run(suites); } /* updates the background color and closes the current browser for flash and html targets (useful for continous integration servers) */ function completionHandler(successful:Bool):Void { try { #if flash flash.external.ExternalInterface.call("testResult", successful); #elseif js js.Lib.eval("testResult(" + successful + ");"); #elseif sys Sys.exit(0); #end } // if run from outside browser can get error which we can ignore catch (e:Dynamic) { } } }
Version data entries
792 entries across 396 versions & 1 rubygems