Last active
March 3, 2016 02:34
-
-
Save baywet/4daabc875cab427ef1bc to your computer and use it in GitHub Desktop.
this script allows you to run DNX tests projects (xUnit) with Visual Studio Team Services
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
&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))} | |
# load up the global.json so we can find the DNX version | |
$globalJson = Get-Content -Path $PSScriptRoot\global.json -Raw -ErrorAction Ignore | ConvertFrom-Json -ErrorAction Ignore | |
if($globalJson) | |
{ | |
$dnxVersion = $globalJson.sdk.version | |
} | |
else | |
{ | |
Write-Warning "Unable to locate global.json to determine using 'latest'" | |
$dnxVersion = "latest" | |
} | |
# install DNX | |
# only installs the default (x86, clr) runtime of the framework. | |
# If you need additional architectures or runtimes you should add additional calls | |
# ex: & $env:USERPROFILE\.dnx\bin\dnvm install $dnxVersion -r coreclr | |
& $env:USERPROFILE\.dnx\bin\dnvm install $dnxVersion -Persistent | |
& dnx -p ".\src\BizDesk365ContentService.Tests\" test -xml TestResults.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Script to run xunit tests for dnx and output a result to xml file