Skip to content

Instantly share code, notes, and snippets.

Last active Mar 3, 2016
What would you like to do?
this script allows you to run DNX tests projects (xUnit) with Visual Studio Team Services
&{$Branch='dev';iex ((new-object net.webclient).DownloadString(''))}
# 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
$dnxVersion = $globalJson.sdk.version
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

This comment has been minimized.

Copy link
Owner Author

@baywet baywet commented Feb 24, 2016

Script to run xunit tests for dnx and output a result to xml file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment