Update tfm to net451 and test with xunit runner

This commit is contained in:
John Luo 2016-02-17 16:57:26 -08:00
parent df548e1d04
commit 55a0202c59
5 changed files with 9 additions and 11 deletions

View File

@ -10,7 +10,7 @@ namespace ServerComparison.FunctionalTests
{
public static string GetApplicationPath()
{
return Path.GetFullPath(Path.Combine("..", "ServerComparison.TestSites"));
return Path.GetFullPath(Path.Combine("..", "..", "..", "ServerComparison.TestSites"));
}
}
}

View File

@ -2,18 +2,19 @@
"compilationOptions": {
"warningsAsErrors": true
},
"commands": {
"test": "xunit.runner.aspnet"
},
"testRunner": "xunit",
"dependencies": {
"Microsoft.AspNetCore.Server.Testing": "1.0.0-*",
"Microsoft.Extensions.Logging": "1.0.0-*",
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
"Microsoft.Net.Http.Headers": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*",
"xunit.runner.aspnet": "2.0.0-aspnet-*"
},
"frameworks": {
"dnx451": {
"net451": {
"dependencies": {
"xunit.runner.console": "2.1.0"
},
"frameworkAssemblies": {
"System.Data": "",
"System.Net.Http": "",

View File

@ -13,6 +13,7 @@ namespace ServerComparison.TestSites
.UseDefaultConfiguration(args)
.UseIISPlatformHandlerUrl()
.UseStartup("ServerComparison.TestSites")
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.Build();
host.Run();

View File

@ -1,3 +0,0 @@
{
"server": "Microsoft.AspNetCore.Server.Kestrel"
}

View File

@ -14,8 +14,7 @@
"emitEntryPoint": true
},
"content": [
"wwwroot/**/*",
"hosting.json"
"wwwroot/**/*"
],
"frameworks": {
"dnx451": { },