Skip to content
This repository
Browse code

Updated haxelib file and docs for pending release

  • Loading branch information...
commit ad3886a8f62f5ac7d487d38059c8133ba2fdccfa 1 parent c1a08ca
Dominic De Lorenzo authored February 27, 2012
4  README.md
Source Rendered
... ...
@@ -1,7 +1,9 @@
1 1
 MassiveCover (MCover)
2 2
 ======================
3 3
 
4  
-MCover is a collection of cross platform code quality tools for Haxe that are injected into your code at compile-time (using macros) to provide runtime tracking of code coverage and/or function entry/exit times. 
  4
+MassiveCover is a collection of macro based cross-platform code coverage and quality tools from Massive Interactive.
  5
+
  6
+Massive Cover currently includes code coverage and function entry/exit logging. 
5 7
 
6 8
 
7 9
 To install mcover:
6  haxelib.xml
... ...
@@ -1,6 +1,8 @@
1 1
 <project name="mcover" url="https://github.com/massiveinteractive/MassiveCover" license="BSD">
2 2
 	<user name="massive"/>
3 3
 	<tag v="cross" />
4  
-	<description>MassiveCover is a cross-platform haXe code coverage framework from Massive Interactive.</description>
5  
-	<version name="1.1.0">Added support for MUnit RichPrintClient html output, minor bug fixes</version>
  4
+	<tag v="macro" />
  5
+	<tag v="utility" />
  6
+	<description>MassiveCover is a collection of macro based cross-platform code coverage and quality tools from Massive Interactive.</description>
  7
+	<version name="1.2.0">Added function logging tool, Reinstated class level @IgnoreCoverage, internal refactoring to leverage common macro code between coverage and logging packages. Added better examples and documentation</version>
6 8
 </project>
89  mcover.sublime-workspace
@@ -560,15 +560,37 @@
560 560
 	},
561 561
 	"file_history":
562 562
 	[
  563
+		"/ws/MassiveCover/src/m/cover/util/Timer.hx",
  564
+		"/ws/MassiveCover/test/TestSuite.hx",
  565
+		"/ws/MassiveCover/test/m/cover/util/TimerTest.hx",
  566
+		"/ws/MassiveCover/test/m/cover/coverage/data/AbstractBlockTest.hx",
  567
+		"/ws/MassiveCover/test/m/cover/coverage/CoverageReportClientMock.hx",
  568
+		"/ws/MassiveCover/test/m/cover/coverage/CoverageLoggerImplTest.hx",
  569
+		"/ws/MassiveCover/test/m/cover/coverage/CoverageLoggerMock.hx",
  570
+		"/ws/MassiveCover/test/m/cover/coverage/client/CoverageReportClientTest.hx",
  571
+		"/ws/MassiveCover/src/m/cover/coverage/macro/CoverageExpressionParser.hx",
  572
+		"/ws/MassiveCover/src/m/cover/MCover.hx",
  573
+		"/ws/MassiveCover/src/m/cover/coverage/client/PrintClient.hx",
563 574
 		"/ws/MassiveCover/src/m/cover/macro/ClassParser.hx",
  575
+		"/ws/MassiveCover/src/m/cover/logger/data/Log.hx",
  576
+		"/ws/MassiveCover/src/m/cover/logger/client/LoggerClientImpl.hx",
  577
+		"/ws/MassiveCover/src/m/cover/logger/data/LogRecording.hx",
  578
+		"/ws/MassiveCover/src/m/cover/logger/Utils.hx",
  579
+		"/ws/MassiveCover/src/m/cover/util/NumberUtil.hx",
  580
+		"/ws/MassiveCover/src/m/cover/logger/LoggerImpl.hx",
  581
+		"/ws/MassiveCover/src/m/cover/coverage/CoverageLogger.hx",
  582
+		"/ws/MassiveCover/src/m/cover/coverage/client/EMMAPrintClient.hx",
  583
+		"/ws/MassiveCover/logger.hxml",
  584
+		"/ws/MassiveCover/README.md",
  585
+		"/ws/MassiveCover/src/m/cover/coverage/README.md",
  586
+		"/ws/MassiveCover/src/m/cover/logger/README.md",
  587
+		"/ws/MassiveCover/doc/coverage/README.md",
564 588
 		"/ws/MassiveCover/test.hxml",
565 589
 		"/ws/MassiveCover/src/m/cover/macro/ClassPathFilter.hx",
566 590
 		"/ws/MassiveCover/example/coverage/03_MassiveUnitCoverage/.munit",
567 591
 		"/ws/MassiveCover/example/coverage/03_MassiveUnitCoverage/build/js_test.js",
568 592
 		"/ws/MassiveCover/example/coverage/03_MassiveUnitCoverage/build.hxml",
569 593
 		"/ws/MassiveCover/src/m/cover/coverage/macro/CoverageMacroDelegate.hx",
570  
-		"/ws/MassiveCover/src/m/cover/coverage/macro/CoverageExpressionParser.hx",
571  
-		"/ws/MassiveCover/src/m/cover/MCover.hx",
572 594
 		"/ws/MassiveCover/example/coverage/03_MassiveUnitCoverage/test.hxml",
573 595
 		"/ws/MassiveCover/src/massive/mcover/MCover.hx",
574 596
 		"/ws/MassiveCore/.mcover-debug",
@@ -592,15 +614,11 @@
592 614
 		"/ws/MassiveCover/src/AllClasses.hx",
593 615
 		"/ws/MassiveLib/tool/src/massive/mlib/cmd/PackageForHaxelibCommand.hx",
594 616
 		"/ws/MassiveCover/src/massive/mcover/munit/client/MCoverPrintClient.hx",
595  
-		"/ws/MassiveCover/README.md",
596 617
 		"/ws/MassiveCover/doc/Coverage.md",
597 618
 		"/ws/MassiveCover/src/m/cover/coverage/client/TraceClient.hx",
598 619
 		"/ws/MassiveCover/src/m/cover/logger/macro/LoggerMacroDelegate.hx",
599 620
 		"/ws/MassiveCover/src/m/cover/logger/MCoverLogger.hx",
600  
-		"/ws/MassiveCover/src/m/cover/logger/LoggerImpl.hx",
601  
-		"/ws/MassiveCover/logger.hxml",
602 621
 		"/ws/MassiveCover/coverage.hxml",
603  
-		"/ws/MassiveCover/src/m/cover/logger/client/LoggerClientImpl.hx",
604 622
 		"/ws/MassiveCover/src/m/cover/logger/client/LogClientImpl.hx",
605 623
 		"/ws/MassiveCover/src/m/cover/logger/client/LogClient.hx",
606 624
 		"/ws/MassiveCover/src/m/cover/logger/Logger.hx",
@@ -617,15 +635,10 @@
617 635
 		"/ws/MassiveCover/example/logger/01_BasicLogging/build.hxml",
618 636
 		"/ws/MassiveCover/example/coverage/04_CustomReportClient/build.hxml",
619 637
 		"/ws/MassiveCover/doc/Logger.md",
620  
-		"/ws/MassiveCover/src/m/cover/logger/README.md",
621  
-		"/ws/MassiveCover/src/m/cover/coverage/README.md",
622 638
 		"/ws/MassiveCover/src/m/cover/coverage/munit/client/MCoverPrintClient.hx",
623 639
 		"/ws/MassiveCover/src/m/cover/coverage/macro/CoverageBuildMacro.hx",
624  
-		"/ws/MassiveCover/src/m/cover/coverage/CoverageLogger.hx",
625 640
 		"/ws/MassiveCover/test/m/cover/coverage/CoverageLoggerTest.hx",
626  
-		"/ws/MassiveCover/test/m/cover/coverage/CoverageLoggerImplTest.hx",
627 641
 		"/ws/MassiveUnit/tool/template/test-stub-test.mtt",
628  
-		"/ws/MassiveCover/src/m/cover/coverage/client/PrintClient.hx",
629 642
 		"/ws/MassiveCover/src/m/cover/coverage/data/Statement.hx",
630 643
 		"/ws/MassiveCover/src/m/cover/coverage/data/Method.hx",
631 644
 		"/ws/MassiveCover/src/m/cover/coverage/data/Line.hx",
@@ -636,18 +649,12 @@
636 649
 		"/ws/MassiveCover/src/m/cover/coverage/data/AbstractNodeList.hx",
637 650
 		"/ws/MassiveCover/src/m/cover/coverage/data/AbstractBlock.hx",
638 651
 		"/ws/MassiveCover/src/m/cover/coverage/util/Timer.hx",
639  
-		"/ws/MassiveCover/src/m/cover/logger/data/LogRecording.hx",
640  
-		"/ws/MassiveCover/src/m/cover/logger/data/Log.hx",
641 652
 		"/ws/MassiveCover/src/m/cover/coverage/data/Package.hx",
642 653
 		"/ws/MassiveUnit/tool/src/massive/munit/command/RunCommand.hx",
643  
-		"/ws/MassiveCover/test/m/cover/coverage/client/CoverageReportClientTest.hx",
644  
-		"/ws/MassiveCover/src/m/cover/coverage/client/EMMAPrintClient.hx",
645 654
 		"/ws/MassiveCover/src/m/cover/coverage/data/AbstractNode.hx",
646  
-		"/ws/MassiveCover/test/m/cover/coverage/CoverageReportClientMock.hx",
647 655
 		"/ws/MassiveCover/src/m/cover/coverage/data/DataUtil.hx",
648 656
 		"/ws/MassiveCover/src/m/cover/logger/MLogger.hx",
649 657
 		"/ws/MassiveCover/src/m/cover/coverage/MCoverage.hx",
650  
-		"/ws/MassiveCover/src/m/cover/logger/Utils.hx",
651 658
 		"/ws/MassiveCover/src/m/cover/macro/BuildMacroParser.hx",
652 659
 		"/ws/MassiveCover/src/m/cover/macro/IncludeMacro.hx",
653 660
 		"/ws/MacroLogger/example/src/Main.hx",
@@ -673,8 +680,6 @@
673 680
 		"/ws/MacroLogger/src/m/cover/logger/macro/LoggerBuildMacro.hx",
674 681
 		"/ws/MassiveUnit/tool/template/test-main.mtt",
675 682
 		"/ws/MassiveCover/test/m/cover/coverage/client/PrintClientTest.hx",
676  
-		"/ws/MassiveCover/test/m/cover/coverage/CoverageLoggerMock.hx",
677  
-		"/ws/MassiveCover/test/m/cover/coverage/data/AbstractBlockTest.hx",
678 683
 		"/ws/MassiveCover/test/m/cover/coverage/data/AbstractNodeListTest.hx",
679 684
 		"/ws/MassiveCover/test/m/cover/coverage/data/AbstractNodeTest.hx",
680 685
 		"/ws/MassiveCover/test/m/cover/coverage/data/BranchTest.hx",
@@ -682,12 +687,7 @@
682 687
 		"/ws/MassiveCover/test/m/cover/coverage/data/CoverageTest.hx",
683 688
 		"/ws/MassiveCover/test/m/cover/coverage/data/DataUtilTest.hx",
684 689
 		"/ws/MassiveCover/test/m/cover/coverage/data/FileTest.hx",
685  
-		"/ws/MassiveCover/test/m/cover/coverage/data/MethodTest.hx",
686  
-		"/ws/MassiveCover/test/m/cover/coverage/data/NodeMock.hx",
687  
-		"/ws/MassiveCover/test/m/cover/coverage/data/PackageTest.hx",
688  
-		"/ws/MassiveCover/test/m/cover/coverage/data/StatementTest.hx",
689  
-		"/ws/MassiveCover/test/m/cover/coverage/ExceptionTest.hx",
690  
-		"/ws/MassiveCover/test/m/cover/coverage/MCoverTest.hx"
  690
+		"/ws/MassiveCover/test/m/cover/coverage/data/MethodTest.hx"
691 691
 	],
692 692
 	"find":
693 693
 	{
@@ -698,6 +698,11 @@
698 698
 		"height": 93.0,
699 699
 		"where_history":
700 700
 		[
  701
+			"/ws/MassiveCover/src",
  702
+			"/ws/MassiveCover/test",
  703
+			"/ws/MassiveCover/src",
  704
+			"/ws/MassiveCover/src/m/cover/logger",
  705
+			"/ws/MassiveCover/src/m/cover/coverage",
701 706
 			"/ws/MassiveCover/example/coverage/03_MassiveUnitCoverage/build",
702 707
 			"/ws/MassiveCover/src/m/cover/logger",
703 708
 			"/ws/MassiveCover/src",
@@ -724,9 +729,17 @@
724 729
 	},
725 730
 	"find_state":
726 731
 	{
727  
-		"case_sensitive": true,
  732
+		"case_sensitive": false,
728 733
 		"find_history":
729 734
 		[
  735
+			"util.Timer",
  736
+			"cover.Timer",
  737
+			"coverage.Timer",
  738
+			"Timer",
  739
+			"		",
  740
+			"formatTime",
  741
+			"stamp",
  742
+			"Timer",
730 743
 			"test",
731 744
 			"();",
732 745
 			"createCodeBlockReference",
@@ -846,15 +859,7 @@
846 859
 			"ignoreClass",
847 860
 			"META_TAG_IGNORE",
848 861
 			"\n// /**\n// 	* Depricated - generate a local method to log the exit and returns\n// 	* the original return value along with the original return type signature.\n// 	* \n// 	* Not currently used - but keeping incase edge cases with current implementation (return {log();foo})\n// 	*/\n// 	function logReturnValueViaFunction(expr:Expr, e:Expr):Expr\n// 	{\n// 		//a returned value (e.g. return foo;)\n// 		var pos:Position = expr.pos;\n\n// 		var ret:Null<ComplexType> = null;\n// 		switch(functionStack[functionStack.length-1].expr)\n// 		{\n// 			case EFunction(name, f): ret = f.ret;\n// 			default: ret =  currentMethodFunction.ret;\n// 		}\n\n// 		var field = generateCustomLogFunction(ret, pos);\n// 		newMethods.push(field);\n// 		//debug(macrotools.Print.makeWithField(field));\n\n// 		//replace the return with the call to the newly generated method\n// 		var eConst = {\n// 			expr:EConst(CIdent(field.name)),\n// 			pos:pos\n// 		};\n		\n// 		var eCall = {\n// 			expr:ECall(eConst, [e]),\n// 			pos:pos\n// 		}\n\n// 		expr.expr = EReturn(eCall);\n\n// 		return expr;\n\n// 	}\n\n// 	function generateCustomLogFunction(ret:Null<ComplexType>, pos:Position):Field\n// 	{\n// 		//create typed function args - e.g. (value:*, ?pos:haxe.PosInfos)\n\n// 		var fPosInfosType = {\n// 			sub:null,\n// 			params: [],\n// 			pack: [\"haxe\"],\n// 			name: \"PosInfos\"\n// 		}\n\n// 		var fArgs = [\n// 			{\n// 				value:null,\n// 				type:ret,\n// 				opt:false,\n// 				name:\"value\"\n// 			},\n// 			{\n// 				value:null,\n// 				type:TPath(fPosInfosType),\n// 				opt:true,\n// 				name:\"pos\"\n// 			}\n// 		];\n\n// 		var fParams = [];\n\n\n// 		//create function body\n// 		//i.e. {fOut();return value;}\n\n// 		var exprs:Array<Expr> = [];\n\n// 		var ePosInfos = {expr:EConst(CIdent(\"pos\")), pos:pos};\n\n// 		var eLog = createFunctionLogExpr(pos, \"logExit\", ePosInfos);\n// 		exprs.push(eLog);\n\n\n// 		var eRef = {expr:EConst(CIdent(\"value\")), pos:pos};\n\n// 		var eEReturn = {\n// 			expr:EReturn(eRef),\n// 			pos:pos\n// 		};\n// 		exprs.push(eEReturn);\n\n// 		var fExpr = {\n// 			expr:EBlock(exprs),\n// 			pos:pos\n// 		};\n\n// 		//create function definition\n\n// 		var fFun = {\n// 			ret:ret,\n// 			params:fParams,\n// 			expr:fExpr,\n// 			args:fArgs\n// 		}\n\n// 		//create new class field method\n// 		//i.e. _____mcoverX = function(value:*,?pos:haxe.PosInfos):*{fOut();return value;}\n\n// 		var field = {\n// 			pos:pos,\n// 			name:\"____mcover\" + newMethodCount++,\n// 			meta: [],\n// 			kind: FFun(fFun),\n// 			doc:null,\n// 			access:[AStatic, APrivate]\n// 		}\n		\n// 		return field;\n// 	}",
849  
-			"func",
850  
-			"EA",
851  
-			"getComplexType",
852  
-			"debug",
853  
-			"exprStack",
854  
-			"functionStack",
855  
-			"neko",
856  
-			"completionHandler",
857  
-			"launchNeko"
  862
+			"func"
858 863
 		],
859 864
 		"highlight": true,
860 865
 		"in_selection": false,
@@ -1003,6 +1008,11 @@
1003 1008
 			"sheets":
1004 1009
 			[
1005 1010
 			]
  1011
+		},
  1012
+		{
  1013
+			"sheets":
  1014
+			[
  1015
+			]
1006 1016
 		}
1007 1017
 	],
1008 1018
 	"incremental_find":
@@ -1022,11 +1032,18 @@
1022 1032
 				0,
1023 1033
 				1,
1024 1034
 				1
  1035
+			],
  1036
+			[
  1037
+				1,
  1038
+				0,
  1039
+				2,
  1040
+				1
1025 1041
 			]
1026 1042
 		],
1027 1043
 		"cols":
1028 1044
 		[
1029 1045
 			0.0,
  1046
+			0.827396485734,
1030 1047
 			1.0
1031 1048
 		],
1032 1049
 		"rows":
@@ -1061,6 +1078,6 @@
1061 1078
 	"show_open_files": true,
1062 1079
 	"show_tabs": true,
1063 1080
 	"side_bar_visible": true,
1064  
-	"side_bar_width": 265.0,
  1081
+	"side_bar_width": 550.0,
1065 1082
 	"status_bar_visible": true
1066 1083
 }

0 notes on commit ad3886a

Please sign in to comment.
Something went wrong with that request. Please try again.