Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Run UWP Unit Tests
REM Build project
msbuild /restore /t:Build /p:Platform=x64;Configuration=Debug MyUWPTestProject.csproj
REM Remove previous install
Powershell.exe -command "& {Remove-AppxPackage -Package 'd160b1a9-2c65-41ed-82af-4d4939e99742_1.0.0.0_x64__zy2ctb9gr90we'}"
REM Install cert. Note: Must be run with elevated (admin) access
certutil -addstore root "AppPackages\MyUWPTestProject_1.0.0.0_x64_Debug_Test\MyUWPTestProject_1.0.0.0_x64_Debug.cer"
REM Run Tests
VSTest.Console MyUWPTestProject\AppPackages\MyUWPTestProject_1.0.0.0_x64_Debug_Test\MyUWPTestProject_1.0.0.0_%x64_Debug.appx /logger:trx;LogFileName=TestReport.TRX /Platform:x64 /InIsolation /framework:FrameworkUap10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment