Skip to content

Commit 21be4e0

Browse files
authored
.Net Standard (#15)
* remove obsolete file * convert project to .net standard * styleop update * revert (supported in standard 1.5) * remove gitlink * xunit, stylecop, specflow * fix usages of scenario context * dotnet xunit * use choco opencover on appveyor * opecover dotnet.exe path * fix path fix * -oldstyle codecov * full pdbs required by codecov * ps exit code * xunit -noshadow * cake to test * no need for opencover in appveyor * fix build of docu.csproj * fail if tests fail * indent fix * brig back stylecop settings for codefactor.io * try to make open cover fail the build * fix null return * added gitlink to cake * add gitlink to appveyor * move all build scripts to cake * fix appveyor cake script * fix cake params * haave gitversion update build number * gitverions prerelease * twaek gitversion task when on CI * no need twice * temporary workaround for context resolver * fix test * split tests in context readme * typo and test for both method and property
1 parent 753ba07 commit 21be4e0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2283
-1318
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ _TeamCity*
9696

9797
# DotCover is a Code Coverage Tool
9898
*.dotCover
99+
opencover.xml
99100

100101
# NCrunch
101102
_NCrunch_*
@@ -135,7 +136,7 @@ publish/
135136
# NuGet Packages
136137
*.nupkg
137138
# The packages folder can be ignored because of Package Restore
138-
**/packages/*
139+
**/packages/
139140
# except build/, which is used as an MSBuild target.
140141
!**/packages/build/
141142
# If using the old MSBuild-Integrated Package Restore, uncomment this:
@@ -237,3 +238,7 @@ $RECYCLE.BIN/
237238
src/JsonLD.Entities.Tests/ParsingTests
238239
VersionAssemblyInfo.cs
239240
.paket/paket.exe
241+
242+
!tools/
243+
tools/*
244+
!tools/llite/

.paket/Paket.Restore.targets

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<!-- Step 1 Check if lockfile is properly restored -->
4444
<PropertyGroup>
4545
<PaketRestoreRequired>true</PaketRestoreRequired>
46-
<NoWarn>$(NoWarn);NU1603</NoWarn>
46+
<NoWarn>$(NoWarn);NU1603;NU1604;NU1605;NU1608</NoWarn>
4747
</PropertyGroup>
4848

4949
<!-- Because ReadAllText is slow on osx/linux, try to find shasum and awk -->
@@ -60,6 +60,9 @@
6060
<Output TaskParameter="ConsoleOutput" PropertyName="PaketRestoreLockFileHash" />
6161
</Exec>
6262

63+
<!-- Debug whats going on -->
64+
<Message Importance="low" Text="calling paket restore with targetframework=$(TargetFramework) targetframeworks=$(TargetFrameworks)" />
65+
6366
<PropertyGroup Condition="Exists('$(PaketRestoreCacheFile)') ">
6467
<!-- if no hash has been done yet fall back to just reading in the files and comparing them -->
6568
<PaketRestoreCachedHash Condition=" '$(PaketRestoreCachedHash)' == '' ">$([System.IO.File]::ReadAllText('$(PaketRestoreCacheFile)'))</PaketRestoreCachedHash>
@@ -69,11 +72,22 @@
6972
<PaketRestoreRequired Condition=" '$(PaketRestoreLockFileHash)' == '' ">true</PaketRestoreRequired>
7073
</PropertyGroup>
7174

75+
<PropertyGroup Condition="'$(PaketPropsVersion)' != '5.174.2' ">
76+
<PaketRestoreRequired>true</PaketRestoreRequired>
77+
</PropertyGroup>
78+
7279
<!-- Do a global restore if required -->
7380
<Exec Command='$(PaketBootStrapperCommand)' Condition="Exists('$(PaketBootStrapperExePath)') AND !(Exists('$(PaketExePath)'))" ContinueOnError="false" />
7481
<Exec Command='$(PaketCommand) restore' Condition=" '$(PaketRestoreRequired)' == 'true' " ContinueOnError="false" />
7582

7683
<!-- Step 2 Detect project specific changes -->
84+
<ItemGroup>
85+
<MyTargetFrameworks Condition="'$(TargetFramework)' != '' " Include="$(TargetFramework)"></MyTargetFrameworks>
86+
<!-- Don't include all frameworks when msbuild explicitly asks for a single one -->
87+
<MyTargetFrameworks Condition="'$(TargetFrameworks)' != '' AND '$(TargetFramework)' == '' " Include="$(TargetFrameworks)"></MyTargetFrameworks>
88+
<PaketResolvedFilePaths Include="@(MyTargetFrameworks -> '$(MSBuildProjectDirectory)\obj\$(MSBuildProjectFile).%(Identity).paket.resolved')"></PaketResolvedFilePaths>
89+
</ItemGroup>
90+
<Message Importance="low" Text="MyTargetFrameworks=@(MyTargetFrameworks) PaketResolvedFilePaths=@(PaketResolvedFilePaths)" />
7791
<PropertyGroup>
7892
<PaketReferencesCachedFilePath>$(MSBuildProjectDirectory)\obj\$(MSBuildProjectFile).paket.references.cached</PaketReferencesCachedFilePath>
7993
<!-- MyProject.fsproj.paket.references has the highest precedence -->
@@ -82,7 +96,9 @@
8296
<PaketOriginalReferencesFilePath Condition=" !Exists('$(PaketOriginalReferencesFilePath)')">$(MSBuildProjectDirectory)\$(MSBuildProjectName).paket.references</PaketOriginalReferencesFilePath>
8397
<!-- paket.references -->
8498
<PaketOriginalReferencesFilePath Condition=" !Exists('$(PaketOriginalReferencesFilePath)')">$(MSBuildProjectDirectory)\paket.references</PaketOriginalReferencesFilePath>
85-
<PaketResolvedFilePath>$(MSBuildProjectDirectory)\obj\$(MSBuildProjectFile).$(TargetFramework).paket.resolved</PaketResolvedFilePath>
99+
100+
<DoAllResolvedFilesExist>false</DoAllResolvedFilesExist>
101+
<DoAllResolvedFilesExist Condition="Exists(%(PaketResolvedFilePaths.Identity))">true</DoAllResolvedFilesExist>
86102
<PaketRestoreRequired>true</PaketRestoreRequired>
87103
<PaketRestoreRequiredReason>references-file-or-cache-not-found</PaketRestoreRequiredReason>
88104
</PropertyGroup>
@@ -101,33 +117,39 @@
101117
</PropertyGroup>
102118

103119
<!-- Step 2 b detect relevant changes in project file (new targetframework) -->
104-
<PropertyGroup Condition=" !Exists('$(PaketResolvedFilePath)') AND '$(TargetFramework)' != '' ">
120+
<PropertyGroup Condition=" '$(DoAllResolvedFilesExist)' != 'true' ">
105121
<PaketRestoreRequired>true</PaketRestoreRequired>
106-
<PaketRestoreRequiredReason>target-framework '$(TargetFramework)'</PaketRestoreRequiredReason>
122+
<PaketRestoreRequiredReason>target-framework '$(TargetFramework)' or '$(TargetFrameworks)' files @(PaketResolvedFilePaths)</PaketRestoreRequiredReason>
107123
</PropertyGroup>
108124

109125
<!-- Step 3 Restore project specific stuff if required -->
110126
<Message Condition=" '$(PaketRestoreRequired)' == 'true' " Importance="low" Text="Detected a change ('$(PaketRestoreRequiredReason)') in the project file '$(MSBuildProjectFullPath)', calling paket restore" />
111-
<Exec Command='$(PaketCommand) restore --project "$(MSBuildProjectFullPath)"' Condition=" '$(PaketRestoreRequired)' == 'true' " ContinueOnError="false" />
127+
<Exec Command='$(PaketCommand) restore --project "$(MSBuildProjectFullPath)" --target-framework "$(TargetFrameworks)"' Condition=" '$(PaketRestoreRequired)' == 'true' AND '$(TargetFramework)' == '' " ContinueOnError="false" />
128+
<Exec Command='$(PaketCommand) restore --project "$(MSBuildProjectFullPath)" --target-framework "$(TargetFramework)"' Condition=" '$(PaketRestoreRequired)' == 'true' AND '$(TargetFramework)' != '' " ContinueOnError="false" />
112129

113130
<!-- This shouldn't actually happen, but just to be sure. -->
114-
<Error Condition=" !Exists('$(PaketResolvedFilePath)') AND '$(TargetFramework)' != '' AND '$(ResolveNuGetPackages)' != 'False' " Text="Paket file '$(PaketResolvedFilePath)' is missing while restoring $(MSBuildProjectFile). Please delete 'paket-files/paket.restore.cached' and call 'paket restore'." />
131+
<PropertyGroup>
132+
<DoAllResolvedFilesExist>false</DoAllResolvedFilesExist>
133+
<DoAllResolvedFilesExist Condition="Exists(%(PaketResolvedFilePaths.Identity))">true</DoAllResolvedFilesExist>
134+
</PropertyGroup>
135+
<Error Condition=" '$(DoAllResolvedFilesExist)' != 'true' AND '$(ResolveNuGetPackages)' != 'False' " Text="One Paket file '@(PaketResolvedFilePaths)' is missing while restoring $(MSBuildProjectFile). Please delete 'paket-files/paket.restore.cached' and call 'paket restore'." />
115136

116137
<!-- Step 4 forward all msbuild properties (PackageReference, DotNetCliToolReference) to msbuild -->
117-
<ReadLinesFromFile Condition="Exists('$(PaketResolvedFilePath)')" File="$(PaketResolvedFilePath)" >
138+
<ReadLinesFromFile Condition="($(DesignTimeBuild) != true OR '$(PaketPropsLoaded)' != 'true') AND '@(PaketResolvedFilePaths)' != ''" File="%(PaketResolvedFilePaths.Identity)" >
118139
<Output TaskParameter="Lines" ItemName="PaketReferencesFileLines"/>
119140
</ReadLinesFromFile>
120141

121-
<ItemGroup Condition=" Exists('$(PaketResolvedFilePath)') AND '@(PaketReferencesFileLines)' != '' " >
142+
<ItemGroup Condition="($(DesignTimeBuild) != true OR '$(PaketPropsLoaded)' != 'true') AND '@(PaketReferencesFileLines)' != '' " >
122143
<PaketReferencesFileLinesInfo Include="@(PaketReferencesFileLines)" >
123144
<PackageName>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[0])</PackageName>
124145
<PackageVersion>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[1])</PackageVersion>
125146
<AllPrivateAssets>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[4])</AllPrivateAssets>
126147
</PaketReferencesFileLinesInfo>
127148
<PackageReference Include="%(PaketReferencesFileLinesInfo.PackageName)">
128149
<Version>%(PaketReferencesFileLinesInfo.PackageVersion)</Version>
129-
<PrivateAssets Condition="%(PaketReferencesFileLinesInfo.AllPrivateAssets) == 'true'">All</PrivateAssets>
150+
<PrivateAssets Condition=" ('%(PaketReferencesFileLinesInfo.AllPrivateAssets)' == 'true') Or ('$(PackAsTool)' == 'true') ">All</PrivateAssets>
130151
<ExcludeAssets Condition="%(PaketReferencesFileLinesInfo.AllPrivateAssets) == 'exclude'">runtime</ExcludeAssets>
152+
<Publish Condition=" '$(PackAsTool)' == 'true' ">true</Publish>
131153
</PackageReference>
132154
</ItemGroup>
133155

.paket/paket.bootstrapper.exe

32.8 KB
Binary file not shown.

.paket/paket.targets

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<PropertyGroup>
5+
<!-- Enable the restore command to run before builds -->
6+
<RestorePackages Condition=" '$(RestorePackages)' == '' ">true</RestorePackages>
7+
<PaketToolsPath>$(MSBuildThisFileDirectory)</PaketToolsPath>
8+
<PaketRootPath>$(MSBuildThisFileDirectory)..\</PaketRootPath>
9+
<PaketLockFilePath>$(PaketRootPath)paket.lock</PaketLockFilePath>
10+
<PaketRestoreCacheFile>$(PaketRootPath)paket-files\paket.restore.cached</PaketRestoreCacheFile>
11+
<MonoPath Condition="'$(MonoPath)' == '' And Exists('/Library/Frameworks/Mono.framework/Commands/mono')">/Library/Frameworks/Mono.framework/Commands/mono</MonoPath>
12+
<MonoPath Condition="'$(MonoPath)' == ''">mono</MonoPath>
13+
</PropertyGroup>
14+
15+
<PropertyGroup>
16+
<!-- Paket command -->
17+
<PaketExePath Condition=" '$(PaketExePath)' == '' AND Exists('$(PaketRootPath)paket.exe')">$(PaketRootPath)paket.exe</PaketExePath>
18+
<PaketExePath Condition=" '$(PaketExePath)' == '' ">$(PaketToolsPath)paket.exe</PaketExePath>
19+
<PaketCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketExePath)"</PaketCommand>
20+
<PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"</PaketCommand>
21+
</PropertyGroup>
22+
23+
<Choose> <!-- MyProject.fsproj.paket.references has the highest precedence -->
24+
<When Condition="Exists('$(MSBuildProjectFullPath).paket.references')">
25+
<PropertyGroup>
26+
<PaketReferences>$(MSBuildProjectFullPath).paket.references</PaketReferences>
27+
</PropertyGroup>
28+
</When> <!-- MyProject.paket.references -->
29+
<When Condition="Exists('$(MSBuildProjectDirectory)\$(MSBuildProjectName).paket.references')">
30+
<PropertyGroup>
31+
<PaketReferences>$(MSBuildProjectDirectory)\$(MSBuildProjectName).paket.references</PaketReferences>
32+
</PropertyGroup>
33+
</When> <!-- paket.references -->
34+
<When Condition="Exists('$(MSBuildProjectDirectory)\paket.references')">
35+
<PropertyGroup>
36+
<PaketReferences>$(MSBuildProjectDirectory)\paket.references</PaketReferences>
37+
</PropertyGroup>
38+
</When> <!-- Set to empty if a reference file isn't found matching one of the 3 format options -->
39+
<Otherwise>
40+
<PropertyGroup>
41+
<PaketReferences></PaketReferences>
42+
</PropertyGroup>
43+
</Otherwise>
44+
</Choose>
45+
46+
<PropertyGroup>
47+
<!-- Commands -->
48+
<RestoreCommand>$(PaketCommand) restore --references-file "$(PaketReferences)"</RestoreCommand>
49+
<!-- We need to ensure packages are restored prior to assembly resolve -->
50+
<BuildDependsOn Condition="$(RestorePackages) == 'true'">RestorePackages; $(BuildDependsOn);</BuildDependsOn>
51+
</PropertyGroup>
52+
<Target Name="RestorePackages">
53+
<PropertyGroup>
54+
<PaketRestoreRequired>true</PaketRestoreRequired>
55+
</PropertyGroup>
56+
57+
<PropertyGroup Condition="Exists('$(PaketRestoreCacheFile)') ">
58+
<PaketRestoreCachedHash>$([System.IO.File]::ReadAllText('$(PaketRestoreCacheFile)'))</PaketRestoreCachedHash>
59+
<PaketRestoreLockFileHash>$([System.IO.File]::ReadAllText('$(PaketLockFilePath)'))</PaketRestoreLockFileHash>
60+
<PaketRestoreRequired>true</PaketRestoreRequired>
61+
<PaketRestoreRequired Condition=" '$(PaketRestoreLockFileHash)' == '$(PaketRestoreCachedHash)' ">false</PaketRestoreRequired>
62+
<PaketRestoreRequired Condition=" '$(PaketRestoreLockFileHash)' == '' ">true</PaketRestoreRequired>
63+
</PropertyGroup>
64+
65+
<Exec Command="$(RestoreCommand)"
66+
IgnoreStandardErrorWarningFormat="true"
67+
WorkingDirectory="$(PaketRootPath)"
68+
ContinueOnError="false"
69+
Condition=" '$(PaketRestoreRequired)' == 'true' AND Exists('$(PaketReferences)') AND '$(PaketReferences)' != '' "
70+
/>
71+
</Target>
72+
</Project>

JsonLd.Entities.sln

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 14
4-
VisualStudioVersion = 14.0.24720.0
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27428.2037
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JsonLD.Entities", "src\JsonLD.Entities\JsonLD.Entities.csproj", "{CCB7B927-5AD6-4B98-ABA3-92EA18351B7D}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JsonLD.Entities", "src\JsonLD.Entities\JsonLD.Entities.csproj", "{CCB7B927-5AD6-4B98-ABA3-92EA18351B7D}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{EAFC3ABA-17B5-4557-86A7-545A17506D30}"
99
ProjectSection(SolutionItems) = preProject
10-
after.JsonLd.Entities.sln.targets = after.JsonLd.Entities.sln.targets
10+
.gitignore = .gitignore
1111
appveyor.yml = appveyor.yml
12-
src\Common\Common.props = src\Common\Common.props
12+
build.cake = build.cake
13+
build.ps1 = build.ps1
1314
GitVersionConfig.yaml = GitVersionConfig.yaml
1415
paket.dependencies = paket.dependencies
1516
paket.lock = paket.lock
1617
Settings.StyleCop = Settings.StyleCop
1718
EndProjectSection
1819
EndProject
19-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JsonLD.Entities.Tests", "src\JsonLD.Entities.Tests\JsonLD.Entities.Tests.csproj", "{AE56D865-7892-4A1B-B09D-D697E7F6F894}"
20+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JsonLD.Entities.Tests", "src\JsonLD.Entities.Tests\JsonLD.Entities.Tests.csproj", "{AE56D865-7892-4A1B-B09D-D697E7F6F894}"
2021
EndProject
21-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Documentation", "src\Documentation\Documentation.csproj", "{AF6A37F7-16E9-4DC9-B56C-1667BD88F2AC}"
22+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Documentation", "src\Documentation\Documentation.csproj", "{AF6A37F7-16E9-4DC9-B56C-1667BD88F2AC}"
2223
EndProject
2324
Global
2425
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -42,4 +43,7 @@ Global
4243
GlobalSection(SolutionProperties) = preSolution
4344
HideSolutionNode = FALSE
4445
EndGlobalSection
46+
GlobalSection(ExtensibilityGlobals) = postSolution
47+
SolutionGuid = {A94662AA-C848-451B-808C-9519B2558FB5}
48+
EndGlobalSection
4549
EndGlobal

after.JsonLd.Entities.sln.targets

Lines changed: 0 additions & 7 deletions
This file was deleted.

appveyor.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
1-
install:
2-
- choco install gitversion.portable -pre -y
3-
- choco install codecov
4-
5-
before_build:
6-
- .paket\paket.bootstrapper.exe
7-
- .paket\paket.exe restore
8-
- ps: gitversion /l console /output buildserver
9-
10-
build:
11-
project: JsonLd.Entities.sln
12-
13-
configuration: Release
14-
15-
after_build:
16-
- .paket\paket.exe pack output nugets include-referenced-projects version %GitVersion_NuGetVersion%
17-
18-
after_test:
19-
- .\packages\OpenCover\tools\OpenCover.Console.exe -register:user -target:nunit3-console.exe -targetargs:"src\JsonLD.Entities.Tests\bin\Release\JsonLD.Entities.Tests.dll src\Documentation\bin\Release\JsonLD.Docu.dll" -returntargetcode -filter:"+[JsonLD.Entities]*" -hideskipped:All -output:.\JsonLD.Entities_coverage.xml
20-
- codecov -f "JsonLD.Entities_coverage.xml"
21-
1+
build_script:
2+
- ps: .\build.ps1 -Target CI -verbosity Verbose -configuration Release
3+
224
artifacts:
235
- path: 'nugets\*.nupkg'
246

build.cake

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
#tool paket:?package=OpenCover
2+
#tool paket:?package=codecov
3+
#tool paket:?package=gitlink
4+
#tool paket:?package=GitVersion.CommandLine&prerelease
5+
#addin paket:?package=Cake.Paket
6+
#addin paket:?package=Cake.Codecov
7+
8+
var target = Argument("target", "Build");
9+
var configuration = Argument("Configuration", "Debug");
10+
11+
GitVersion version;
12+
13+
Task("CI")
14+
.IsDependentOn("Pack")
15+
.IsDependentOn("Codecov").Does(() => {});
16+
17+
Task("Pack")
18+
.IsDependentOn("Build")
19+
.Does(() => {
20+
PaketPack("nugets", new PaketPackSettings {
21+
Version = version.NuGetVersion
22+
});
23+
});
24+
25+
Task("GitVersion")
26+
.Does(() => {
27+
version = GitVersion(new GitVersionSettings {
28+
UpdateAssemblyInfo = true,
29+
});
30+
31+
if (BuildSystem.IsLocalBuild == false)
32+
{
33+
GitVersion(new GitVersionSettings {
34+
OutputType = GitVersionOutput.BuildServer
35+
});
36+
}
37+
});
38+
39+
Task("Build")
40+
.IsDependentOn("GitVersion")
41+
.Does(() => {
42+
DotNetCoreBuild("JsonLd.Entities.sln", new DotNetCoreBuildSettings {
43+
Configuration = configuration
44+
});
45+
})
46+
.DoesForEach(GetFiles("**/JsonLD.Entities.pdb"),
47+
pdb => GitLink3(pdb, new GitLink3Settings {
48+
RepositoryUrl = "https://github.com/wikibus/JsonLd.Entities",
49+
}));
50+
51+
Task("Codecov")
52+
.IsDependentOn("Test")
53+
.Does(() => {
54+
Codecov("opencover.xml");
55+
});
56+
57+
Task("Test")
58+
.IsDependentOn("Build")
59+
.Does(() => {
60+
var openCoverSettings = new OpenCoverSettings
61+
{
62+
OldStyle = true,
63+
MergeOutput = true,
64+
MergeByHash = true,
65+
Register = "user",
66+
ReturnTargetCodeOffset = 0
67+
}
68+
.WithFilter("+[JsonLD.Entities]*");
69+
70+
bool success = true;
71+
foreach(var projectFile in new [] { "documentation.csproj", "jsonld.entities.tests.csproj" }.SelectMany(f => GetFiles($"**\\{f}")))
72+
{
73+
try
74+
{
75+
openCoverSettings.WorkingDirectory = projectFile.GetDirectory();
76+
77+
OpenCover(context => {
78+
context.DotNetCoreTool(
79+
projectPath: projectFile.FullPath,
80+
command: "xunit",
81+
arguments: $"-noshadow");
82+
},
83+
"opencover.xml",
84+
openCoverSettings);
85+
}
86+
catch(Exception ex)
87+
{
88+
success = false;
89+
Error("There was an error while running the tests", ex);
90+
}
91+
}
92+
93+
if(success == false)
94+
{
95+
throw new CakeException("There was an error while running the tests");
96+
}
97+
});
98+
99+
RunTarget(target);

0 commit comments

Comments
 (0)