-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added stderr output to HaxeWrapper even if exit code is 0, updated te…
…sts for munit 0.9.5.x
- Loading branch information
Showing
13 changed files
with
167 additions
and
1,238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
.svn | ||
haxe/tmp/ | ||
report/ | ||
bin/ | ||
bin/ | ||
.DS_Store | ||
.mcover | ||
/mlib.sublime-workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
mkdir -p bin | ||
|
||
#build tool | ||
echo ' build tool src' | ||
cd tool | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version=0.2.0.116 | ||
version=0.9.5.2 | ||
src=test | ||
bin=../bin | ||
report=../report/haxe | ||
hxml=test.hxml | ||
hxml=test.hxml | ||
classPaths=src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
# Flash 9+ | ||
-main TestMain | ||
-lib munit | ||
-cp test | ||
-cp src | ||
-lib munit | ||
-swf9 ../bin/haxe_test.swf | ||
|
||
--next | ||
|
||
#Flash 8 | ||
-main TestMain | ||
-lib munit | ||
-cp test | ||
-cp src | ||
-lib munit | ||
-swf ../bin/haxe8_test.swf | ||
|
||
--next | ||
|
||
# JavaScript | ||
-main TestMain | ||
-lib munit | ||
-cp test | ||
-cp src | ||
-lib munit | ||
-js ../bin/haxe_test.js | ||
|
||
--next | ||
|
||
# Neko | ||
-main TestMain | ||
-lib munit | ||
-cp test | ||
-cp src | ||
-lib munit | ||
-neko ../bin/haxe_test.n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,85 @@ | ||
/* | ||
Copyright (c) 2012 Massive Interactive | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
of the Software, and to permit persons to whom the Software is furnished to do | ||
so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
*/ | ||
|
||
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; | ||
import js.Dom; | ||
#end | ||
|
||
|
||
/** | ||
* Auto generated Test Application. | ||
* 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); | ||
} | ||
|
||
class TestMain | ||
{ | ||
static function main(){ new TestMain();} | ||
|
||
public function new() | ||
{ | ||
var suites = new Array<Class<massive.munit.TestSuite>>(); | ||
suites.push(TestSuite); | ||
|
||
var runner:TestRunner = new TestRunner(new HTTPClient(new JUnitReportClient(), "http://localhost:2000")); | ||
runner.addResultClient(new PrintClient()); | ||
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) | ||
*/ | ||
private function completionHandler(successful:Bool):Void | ||
{ | ||
try | ||
{ | ||
#if flash | ||
flash.external.ExternalInterface.call("testResult", successful); | ||
#elseif flash9 | ||
flash.external.ExternalInterface.call("testResult", successful); | ||
#elseif js | ||
js.Lib.eval("testResult(" + successful + ");"); | ||
#elseif neko | ||
neko.Sys.exit(0); | ||
#end | ||
} | ||
// if run from outside browser can get error which we can ignore | ||
catch (e:Dynamic) | ||
{ | ||
} | ||
} | ||
} | ||
/* | ||
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 neko | ||
neko.Sys.exit(0); | ||
#end | ||
} | ||
// if run from outside browser can get error which we can ignore | ||
catch (e:Dynamic) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.