-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix semicolon with multiple binops 2 (#198)
* fixed binop semicolon handling * updated CHANGELOG * moved tests and coverage to utest and instrument re-enabled Haxe nightly * added utest to Haxe 3.4.7 build * no coverage runs for 4.0.5 * skip checkstyle tests for nightly
- Loading branch information
Showing
24 changed files
with
306 additions
and
282 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
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
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
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
-lib hxparse | ||
-lib haxeparser | ||
-lib safety | ||
-lib utest | ||
|
||
-debug | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# @install: lix --silent download "haxelib:/utest#1.13.1" into utest/1.13.1/haxelib | ||
-cp ${HAXE_LIBCACHE}/utest/1.13.1/haxelib/src | ||
-D utest=1.13.1 | ||
--macro utest.utils.Macro.checkHaxe() | ||
--macro utest.utils.Macro.importEnvSettings() |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# @install: lix --silent download "haxelib:/instrument#1.1.0" into instrument/1.1.0/haxelib | ||
-lib safety | ||
-cp ${HAXE_LIBCACHE}/instrument/1.1.0/haxelib/src | ||
-D instrument=1.1.0 |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# @install: lix --silent download "haxelib:/utest#1.13.1" into utest/1.13.1/haxelib | ||
-cp ${HAXE_LIBCACHE}/utest/1.13.1/haxelib/src | ||
-D utest=1.13.1 | ||
--macro utest.utils.Macro.checkHaxe() | ||
--macro utest.utils.Macro.importEnvSettings() |
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
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,10 +1,23 @@ | ||
-cp src | ||
-cp test | ||
|
||
-lib haxeparser | ||
-lib mcover | ||
-lib munit | ||
-lib utest | ||
-lib instrument | ||
|
||
-D unittest | ||
-x TestMain | ||
--macro mcover.MCover.coverage(['tokentree'], ['src'], []) | ||
|
||
-D coverage-console-summary-reporter | ||
#-D coverage-console-file-summary-reporter | ||
-D coverage-console-package-summary-reporter | ||
-D coverage-lcov-reporter | ||
-D coverage-codecov-reporter | ||
|
||
--macro instrument.Instrumentation.coverage(['tokentree'], ['src'], []) | ||
# --macro instrument.Instrumentation.profiling(['tokentree'], ['src'], []) | ||
# -D profiler-console-detail-reporter | ||
# -D debug_instrumentation | ||
|
||
# --macro nullSafety('tokentree') |
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,49 +1,38 @@ | ||
import haxe.EntryPoint; | ||
import massive.munit.TestRunner; | ||
import mcover.coverage.munit.client.MCoverPrintClient; | ||
#if codecov_json | ||
import mcover.coverage.client.CodecovJsonPrintClient; | ||
#else | ||
import mcover.coverage.client.LcovPrintClient; | ||
#end | ||
import mcover.coverage.MCoverage; | ||
import tokentree.TokenTreeBuilderParsingTest; | ||
import tokentree.TokenTreeBuilderTest; | ||
import tokentree.utils.FieldUtilsTest; | ||
import tokentree.utils.TokenTreeCheckUtilsTest; | ||
import tokentree.verify.VerifyTokenTreeTest; | ||
import tokentree.walk.WalkFileTest; | ||
import tokentree.walk.WalkIfTest; | ||
import tokentree.walk.WalkWhileTest; | ||
import utest.Runner; | ||
import utest.ui.Report; | ||
|
||
using StringTools; | ||
|
||
class TestMain { | ||
public function new() { | ||
var suites:Array<Class<massive.munit.TestSuite>> = [TestSuite]; | ||
static function main():Void { | ||
var tests:Array<ITest> = [ | ||
new FieldUtilsTest(), | ||
new TokenTreeCheckUtilsTest(), | ||
new TokenTreeBuilderTest(), | ||
new TokenTreeBuilderParsingTest(), | ||
new VerifyTokenTreeTest(), | ||
new WalkIfTest(), | ||
new WalkWhileTest(), | ||
new WalkFileTest() | ||
]; | ||
var runner:Runner = new Runner(); | ||
|
||
var client:MCoverPrintClient = new MCoverPrintClient(); | ||
#if codecov_json | ||
MCoverage.getLogger().addClient(new CodecovJsonPrintClient()); | ||
#else | ||
MCoverage.getLogger().addClient(new LcovPrintClient("Formatter Unittests")); | ||
#end | ||
var runner:TestRunner = new TestRunner(client); | ||
runner.completionHandler = completionHandler; | ||
#if (neko || cpp || hl) | ||
EntryPoint.addThread(function() { | ||
while (true) Sys.sleep(1.0); | ||
#if instrument | ||
runner.onComplete.add(_ -> { | ||
instrument.coverage.Coverage.endCoverage(); | ||
}); | ||
#end | ||
runner.run(suites); | ||
EntryPoint.run(); | ||
} | ||
|
||
function completionHandler(success:Bool) { | ||
#if eval | ||
if (!success) { | ||
Sys.exit(1); | ||
} | ||
#else | ||
Sys.exit(success ? 0 : 1); | ||
#end | ||
} | ||
|
||
static function main() { | ||
new TestMain(); | ||
Report.create(runner); | ||
for (test in tests) runner.addCase(test); | ||
runner.run(); | ||
} | ||
} | ||
|
||
typedef LineCoverageResult = Dynamic; | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import utest.Assert; | ||
import utest.ITest; |
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
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
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.