-
-
Save romanmikhailov/6a53800511e329cc58eff0b8be7a892e to your computer and use it in GitHub Desktop.
hxmake TestTask js target bug
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
package; | |
import hxmake.test.TestTask; | |
import hxmake.Module; | |
import hxmake.idea.IdeaPlugin; | |
import hxmake.haxelib.HaxelibPlugin; | |
class TestBugModule extends Module { | |
function new() { | |
config.classPath = ["."]; | |
config.devDependencies = ["utest" => "haxelib"]; | |
apply(IdeaPlugin); | |
apply(HaxelibPlugin); | |
var test1:TestTask = new TestTask(); | |
test1.main = "Test1"; | |
test1.outputDir = "bin/test1"; | |
test1.targets = ["js"]; | |
test1.name = "test1"; | |
test1.outputName = "test1"; | |
test1.classPath = ["."]; | |
task(test1.name, test1); | |
var test2:TestTask = new TestTask(); | |
test2.main = "Test2"; | |
test2.outputDir = "bin/test2"; | |
test2.targets = ["js"]; | |
test2.name = "test2"; | |
test2.outputName = "test2"; | |
test2.classPath = ["."]; | |
task(test2.name, test2); | |
} | |
} |
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
package; | |
import utest.Assert; | |
import utest.Runner; | |
import utest.ui.common.HeaderDisplayMode; | |
import utest.ui.Report; | |
class Test1 { | |
public static function main():Void { | |
var runner = new Runner(); | |
runner.addCase(new TestCase1()); | |
Report.create(runner, SuccessResultsDisplayMode.AlwaysShowSuccessResults, HeaderDisplayMode.AlwaysShowHeader); | |
runner.run(); | |
} | |
} | |
class TestCase1 { | |
public function new() {}; | |
public function test1pass() { | |
Assert.pass("Test1!"); | |
} | |
} | |
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
package; | |
import utest.Assert; | |
import utest.Runner; | |
import utest.ui.common.HeaderDisplayMode; | |
import utest.ui.Report; | |
class Test2 { | |
public static function main():Void { | |
var runner = new Runner(); | |
runner.addCase(new TestCase2()); | |
Report.create(runner, SuccessResultsDisplayMode.AlwaysShowSuccessResults, HeaderDisplayMode.AlwaysShowHeader); | |
runner.run(); | |
} | |
} | |
class TestCase2 { | |
public function new() {}; | |
public function test2pass() { | |
Assert.pass("Test2!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment