2
0
Эх сурвалжийг харах

[tests] add a settings.json for unit tests

Simon Krajewski 5 жил өмнө
parent
commit
f6cba6bb35

+ 17 - 0
tests/unit/.vscode/settings.json

@@ -0,0 +1,17 @@
+{
+	"haxe.configurations": [
+		{"label": "JVM", "args": ["compile-jvm-only.hxml", "-cmd", "java -jar bin/unit.jar"]},
+		{"label": "Interp", "args": ["compile-macro.hxml"]},
+	],
+	"[haxe]": {
+		"editor.formatOnSave": true,
+		"editor.formatOnPaste": true
+	},
+	"editor.codeActionsOnSave": {
+		"source.sortImports": true
+	},
+	"haxe.displayServer": {
+		"arguments": ["-v"]
+	},
+	"haxe.enableCompilationServer": false
+}

+ 5 - 0
tests/unit/compile-jvm-only.hxml

@@ -0,0 +1,5 @@
+compile-each.hxml
+--main unit.TestMain
+--java-lib native_java/native.jar
+--jvm bin/unit.jar
+-D jvm.compression-level=0

+ 1 - 5
tests/unit/compile-jvm.hxml

@@ -3,8 +3,4 @@
 
 
 --next
 --next
 
 
-compile-each.hxml
---main unit.TestMain
---java-lib native_java/native.jar
---jvm bin/unit.jar
--D jvm.compression-level=0
+compile-jvm-only.hxml