Enable tests to run using dotnet xunit runner

This commit is contained in:
Kiran Challa 2016-02-09 23:47:50 -08:00
parent c5a8792ece
commit dfcd6a6227
2 changed files with 44 additions and 50 deletions

View File

@ -9,23 +9,20 @@
"xunit": "2.1.0" "xunit": "2.1.0"
}, },
"frameworks": { "frameworks": {
"dnxcore50": {
"dependencies": {
"dotnet-test-xunit": "1.0.0-dev-*"
},
"imports": "portable-net451+win8"
},
"dnx451": { "dnx451": {
"dependencies": { "dependencies": {
"xunit.runner.console": "2.1.0" "xunit.runner.console": "2.1.0"
} }
},
"dnxcore50": {
"dependencies": {
"xunit.runner.aspnet": "2.0.0-aspnet-*"
},
"imports": "portable-net45+win8"
} }
}, },
"compilationOptions": { "compilationOptions": {
"allowUnsafe": true "allowUnsafe": true
}, },
"testRunner": "xunit", "testRunner": "xunit"
"commands": { }
"test": "xunit.runner.aspnet"
}
}

View File

@ -1,41 +1,38 @@
{ {
"version": "1.0.0-*", "version": "1.0.0-*",
"dependencies": { "dependencies": {
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel.Https": "1.0.0-*", "Microsoft.AspNetCore.Server.Kestrel.Https": "1.0.0-*",
"Microsoft.AspNetCore.Testing": "1.0.0-*", "Microsoft.AspNetCore.Testing": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*", "Microsoft.NETCore.Platforms": "1.0.1-*",
"System.Net.Http": "4.0.1-*", "System.Net.Http": "4.0.1-*",
"xunit": "2.1.0" "xunit": "2.1.0"
},
"frameworks": {
"dnxcore50": {
"dependencies": {
"System.Diagnostics.TraceSource": "4.0.0-*",
"System.Globalization.Extensions": "4.0.1-*",
"System.IO": "4.1.0-*",
"System.Net.Http.WinHttpHandler": "4.0.0-*",
"System.Net.Sockets": "4.1.0-*",
"System.Runtime.Handles": "4.0.1-*",
"dotnet-test-xunit": "1.0.0-dev-*"
},
"imports": "portable-net451+win8"
}, },
"frameworks": { "dnx451": {
"dnx451": { "dependencies": {
"dependencies": { "xunit.runner.console": "2.1.0"
"xunit.runner.console": "2.1.0" }
} }
}, },
"dnxcore50": { "compilationOptions": {
"dependencies": { "allowUnsafe": true,
"System.Diagnostics.TraceSource": "4.0.0-*", "keyFile": "../../tools/Key.snk"
"System.Globalization.Extensions": "4.0.1-*", },
"System.IO": "4.1.0-*", "testRunner": "xunit",
"System.Net.Http.WinHttpHandler": "4.0.0-*", "content": [
"System.Net.Sockets": "4.1.0-*", "TestResources/testCert.pfx"
"System.Runtime.Handles": "4.0.1-*", ]
"xunit.runner.aspnet": "2.0.0-aspnet-*" }
},
"imports": "portable-net45+win8"
}
},
"compilationOptions": {
"allowUnsafe": true,
"keyFile": "../../tools/Key.snk"
},
"testRunner": "xunit",
"commands": {
"test": "xunit.runner.aspnet"
},
"content": [
"TestResources/testCert.pfx"
]
}