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() 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": { "compilationOptions": {
"warningsAsErrors": true "warningsAsErrors": true
}, },
"commands": { "testRunner": "xunit",
"test": "xunit.runner.aspnet"
},
"dependencies": { "dependencies": {
"Microsoft.AspNetCore.Server.Testing": "1.0.0-*", "Microsoft.AspNetCore.Server.Testing": "1.0.0-*",
"Microsoft.Extensions.Logging": "1.0.0-*",
"Microsoft.Extensions.Logging.Console": "1.0.0-*", "Microsoft.Extensions.Logging.Console": "1.0.0-*",
"Microsoft.Net.Http.Headers": "1.0.0-*", "Microsoft.Net.Http.Headers": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*", "Microsoft.NETCore.Platforms": "1.0.1-*",
"xunit.runner.aspnet": "2.0.0-aspnet-*"
}, },
"frameworks": { "frameworks": {
"dnx451": { "net451": {
"dependencies": {
"xunit.runner.console": "2.1.0"
},
"frameworkAssemblies": { "frameworkAssemblies": {
"System.Data": "", "System.Data": "",
"System.Net.Http": "", "System.Net.Http": "",

View File

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

View File

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

View File

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