Update tfm to net451 and test with xunit runner
This commit is contained in:
parent
df548e1d04
commit
55a0202c59
|
|
@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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": "",
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ namespace ServerComparison.TestSites
|
|||
.UseDefaultConfiguration(args)
|
||||
.UseIISPlatformHandlerUrl()
|
||||
.UseStartup("ServerComparison.TestSites")
|
||||
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
|
||||
.Build();
|
||||
|
||||
host.Run();
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"server": "Microsoft.AspNetCore.Server.Kestrel"
|
||||
}
|
||||
|
|
@ -14,8 +14,7 @@
|
|||
"emitEntryPoint": true
|
||||
},
|
||||
"content": [
|
||||
"wwwroot/**/*",
|
||||
"hosting.json"
|
||||
"wwwroot/**/*"
|
||||
],
|
||||
"frameworks": {
|
||||
"dnx451": { },
|
||||
|
|
|
|||
Loading…
Reference in New Issue