From bd1346f916b02901ef3450f89595b11d0c81cb97 Mon Sep 17 00:00:00 2001 From: Joshua Clark Date: Wed, 14 Dec 2016 09:32:26 -0500 Subject: [PATCH] fixed code coverage --- appveyor.yml | 2 +- test/Mime-Detective.Tests/project.json | 45 +++++++++++++------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 89003c4..f89126b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,7 +13,7 @@ build_script: - ps: ./Build.ps1 test_script: - nuget.exe install OpenCover -ExcludeVersion - - OpenCover\tools\OpenCover.Console.exe -register:user -filter:"+[Mime-Detective]*" -target:"dotnet.exe" "-targetargs:test .\test\Mime-Detective.Tests" -returntargetcode -hideskipped:All -output:coverage.xml + - OpenCover\tools\OpenCover.Console.exe -register:user -filter:"+[Mime-Detective]* -[Mime-Detective.Tests]*" -target:"dotnet.exe" "-targetargs:test .\test\Mime-Detective.Tests" -returntargetcode -hideskipped:All -output:coverage.xml - "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%" - pip install codecov - codecov -f "coverage.xml" diff --git a/test/Mime-Detective.Tests/project.json b/test/Mime-Detective.Tests/project.json index e618f50..67691c1 100644 --- a/test/Mime-Detective.Tests/project.json +++ b/test/Mime-Detective.Tests/project.json @@ -1,24 +1,25 @@ { - "testRunner": "xunit", + "testRunner": "xunit", - "dependencies": { - "xunit": "2.1.0", - "dotnet-test-xunit": "1.0.0-rc2-build10025", - "NETStandard.Library": "1.6.0", - "Mime-Detective": { "target": "project" } - }, - "frameworks": { - "netcoreapp1.0": { - "dependencies": { - "Microsoft.NETCore.App": { - "type": "platform", - "version": "1.0.0" - } - }, - "imports": [ - "dnxcore50", - "portable-net45+win8" - ] - } - } -} + "dependencies": { + "Mime-Detective": { "target": "project" }, + "xunit": "2.1.0", + "dotnet-test-xunit": "1.0.0-rc2-build10025" + }, + + "frameworks": { + "netcoreapp1.0": { + "define": [ "ASYNCLOCAL" ], + "dependencies": { + "Microsoft.NETCore.App": { + "type": "platform", + "version": "1.0.0" + } + }, + "imports": [ + "dnxcore50", + "portable-net45+win8" + ] + } + } +} \ No newline at end of file