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()
|
public static string GetApplicationPath()
|
||||||
{
|
{
|
||||||
return Path.GetFullPath(Path.Combine("..", "ServerComparison.TestSites"));
|
return Path.GetFullPath(Path.Combine("..", "..", "..", "ServerComparison.TestSites"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -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": "",
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"server": "Microsoft.AspNetCore.Server.Kestrel"
|
|
||||||
}
|
|
||||||
|
|
@ -14,8 +14,7 @@
|
||||||
"emitEntryPoint": true
|
"emitEntryPoint": true
|
||||||
},
|
},
|
||||||
"content": [
|
"content": [
|
||||||
"wwwroot/**/*",
|
"wwwroot/**/*"
|
||||||
"hosting.json"
|
|
||||||
],
|
],
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnx451": { },
|
"dnx451": { },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue