Skip to content

Instantly share code, notes, and snippets.

@Geri-Borbas
Last active July 11, 2017 15:11
Show Gist options
  • Save Geri-Borbas/f941f2e85e12e7cc81c63ee2ac1354e5 to your computer and use it in GitHub Desktop.
Save Geri-Borbas/f941f2e85e12e7cc81c63ee2ac1354e5 to your computer and use it in GitHub Desktop.
Chain up multiple VS Code tasks (Build, Test) in tasks.json.
{
"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": "Build EPPZ.Extensions.Test",
"command": "/Applications/Unity/Unity.app/Contents/MonoBleedingEdge/bin/xbuild",
"args":
[
"Assets/Plugins/eppz!/Extensions/Test.csproj",
"/property:Configuration=Local",
"/property:GenerateFullPaths=true"
],
"showOutput": "always",
"problemMatcher": "$msCompile"
},
{
"taskName": "Test EPPZ.Extensions.Test",
"isShellCommand": true,
"command": "mono",
"dependsOn": [ "Build EPPZ.Extensions.Test" ],
"args":
[
"/Users/eppz/Projects/Unity/Packages/NUnit/NUnit.ConsoleRunner.3.6.1/tools/nunit3-console.exe",
"bin/EPPZ.Extensions.Test.dll",
"--labels=All",
"--result=EPPZ.Extensions.Test.Result.xml"
],
"showOutput": "always"
},
{
"taskName": "Test",
"isShellCommand": true,
"isTestCommand": true,
"command": "echo",
"args": ["All done."],
"dependsOn": [ "Test (EPPZ.Extensions.Test)" ],
"showOutput": "always"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment