如何在Visual Studio 2015中运行dotnet核心单元测试?

时间:2016-10-12 16:28:41

标签: security asp.net-core .net-core

从github(https://github.com/aspnet/Security)分析asp.net核心安全性仓库并尝试在Microsoft.AspNetCore.Authentication.Test中运行测试,但遇到测试发现错误。我做错了什么?

------发现测试开始------ ' 1.0.0- '不是有效的版本字符串。 参数名称:value ==========发现测试结束:0找到(0:00:00.9015246)========== ------发现测试开始------ ' 1.0.0 - '不是有效的版本字符串。 参数名称:value 在&D; \ Dev \ GitHub \ Microsoft \ aspnet \ Security \ test \ Microsoft.AspNetCore.Authentication.Test \ project.json'中发现测试[" C:\ Program Files \ dotnet \ dotnet.exe"测试" D:\ Dev \ GitHub \ Microsoft \ aspnet \ Security \ test \ Microsoft.AspNetCore.Authentication.Test \ project.json" --output" D:\ Dev \ GitHub \ Microsoft \ aspnet \ Security \ test \ Microsoft.AspNetCore.Authentication.Test \ bin \ Debug \ netcoreapp1.0" --port 60376 --parentProcessId 10464 --no-build] '测试的xUnit'返回' -2147450749'。 在&D; \ Dev \ GitHub \ Microsoft \ aspnet \ Security \ test \ Microsoft.AspNetCore.Authorization.Test \ project.json'中发现测试[" C:\ Program Files \ dotnet \ dotnet.exe"测试" D:\ Dev \ GitHub \ Microsoft \ aspnet \ Security \ test \ Microsoft.AspNetCore.Authorization.Test \ project.json" --output" D:\ Dev \ GitHub \ Microsoft \ aspnet \ Security \ test \ Microsoft.AspNetCore.Authorization.Test \ bin \ Debug \ netcoreapp1.0" --port 60380 --parentProcessId 10464 --no-build] '测试的xUnit'返回' -2147450749'。 在&D; \ Dev \ GitHub \ Microsoft \ aspnet \ Security \ test \ Microsoft.AspNetCore.ChunkingCookieManager.Sources.Test \ project.json'中发现测试[" C:\ Program Files \ dotnet \ dotnet.exe"测试" D:\ Dev \ GitHub \ Microsoft \ aspnet \ Security \ test \ Microsoft.AspNetCore.ChunkingCookieManager.Sources.Test \ project.json" --output" D:\ Dev \ GitHub \ Microsoft \ aspnet \ Security \ test \ Microsoft.AspNetCore.ChunkingCookieManager.Sources.Test \ bin \ Debug \ netcoreapp1.0" --port 60387 --parentProcessId 10464 --no-build] '测试的xUnit'返回' -2147450749'。 在&D; \ Dev \ GitHub \ Microsoft \ aspnet \ Security \ test \ Microsoft.AspNetCore.CookiePolicy.Test \ project.json'中发现测试[" C:\ Program Files \ dotnet \ dotnet.exe"测试" D:\ Dev \ GitHub \ Microsoft \ aspnet \ Security \ test \ Microsoft.AspNetCore.CookiePolicy.Test \ project.json" --output" D:\ Dev \ GitHub \ Microsoft \ aspnet \ Security \ test \ Microsoft.AspNetCore.CookiePolicy.Test \ bin \ Debug \ netcoreapp1.0" --port 60392 --parentProcessId 10464 --no-build] '测试的xUnit'返回' -2147450749'。 在&D; \ Dev \ GitHub \ Microsoft \ aspnet \ Security \ test \ Microsoft.Owin.Security.Interop.Test \ project.json'中发现测试[" C:\ Program Files \ dotnet \ dotnet.exe"测试" D:\ Dev \ GitHub \ Microsoft \ aspnet \ Security \ test \ Microsoft.Owin.Security.Interop.Test \ project.json" --output" D:\ Dev \ GitHub \ Microsoft \ aspnet \ Security \ test \ Microsoft.Owin.Security.Interop.Test \ bin \ Debug \ net451 \ win7-x64" --port 60397 --parentProcessId 10464 --no-build] ==========发现测试结果:6找到(0:00:07.8144699)==========

0 个答案:

没有答案