Skip to content

Instantly share code, notes, and snippets.

@Geri-Borbas
Last active October 4, 2018 18:55
Show Gist options
  • Save Geri-Borbas/e566781bb20abf6df09469515d07ae83 to your computer and use it in GitHub Desktop.
Save Geri-Borbas/e566781bb20abf6df09469515d07ae83 to your computer and use it in GitHub Desktop.
VS Code tasks to build and test (!) with Unity. See https://gist.github.com/eppz/ad4fb8d64bdcb0c50a6abea57716823e for test.comman.
{
"version": "2.0.0",
"tasks":
[
{
"taskName": "Build",
"isBuildCommand": true,
"command": "/Applications/Unity/Unity.app/Contents/MonoBleedingEdge/bin/xbuild",
"args":
[
"Project.sln",
"/property:GenerateFullPaths=true"
],
"showOutput": "silent",
"problemMatcher": "$msCompile"
},
{
"taskName": "Test",
"isShellCommand": true,
"isTestCommand": true,
"command": ".vscode/test.command",
"args":
[
"${workspaceRoot}",
"Project.TestResult.xml"
],
"dependsOn": [ "Build" ],
"showOutput": "always"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment