Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
chore: setup code coverage (#9)
Browse files Browse the repository at this point in the history
* refactor: move project directories to root dir

* chore: drop deprecated fixtures

* chore: setup code coverage
  • Loading branch information
spkjp authored and faustbrian committed Jul 18, 2018
1 parent bae642c commit 914e804
Show file tree
Hide file tree
Showing 105 changed files with 13 additions and 119 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -46,3 +46,6 @@ Thumbs.db
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# codecov
coverage.opencover.xml
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -5,8 +5,8 @@ mono: none
dotnet: 2.1

script:
- dotnet build ./lib/ArkEcosystem.Crypto
- dotnet test ./tests/ArkEcosystem.Crypto.Tests/ArkEcosystem.Crypto.Tests.csproj
- dotnet build ./ArkEcosystem.Crypto
- dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover ./ArkEcosystem.Crypto.Tests

after_success:
- bash <(curl -s https://codecov.io/bash)
Expand Down
Expand Up @@ -2,17 +2,18 @@

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>

<DebugType>Full</DebugType>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="2.1.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.0" />
<PackageReference Include="MSTest.TestAdapter" Version="1.2.1" />
<PackageReference Include="MSTest.TestFramework" Version="1.2.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\lib\ArkEcosystem.Crypto\ArkEcosystem.Crypto.csproj" />
<ProjectReference Include="..\ArkEcosystem.Crypto\ArkEcosystem.Crypto.csproj" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions ArkEcosystem.Crypto.sln
@@ -1,9 +1,9 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArkEcosystem.Crypto", "lib\ArkEcosystem.Crypto\ArkEcosystem.Crypto.csproj", "{0C37DC9F-7BBD-4DE6-B25D-FE3BEA0E37E6}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArkEcosystem.Crypto", "ArkEcosystem.Crypto\ArkEcosystem.Crypto.csproj", "{0C37DC9F-7BBD-4DE6-B25D-FE3BEA0E37E6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArkEcosystem.Crypto.Tests", "tests\ArkEcosystem.Crypto.Tests\ArkEcosystem.Crypto.Tests.csproj", "{85ADE89A-DCDF-41DE-BBE0-360E08D717C6}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArkEcosystem.Crypto.Tests", "ArkEcosystem.Crypto.Tests\ArkEcosystem.Crypto.Tests.csproj", "{85ADE89A-DCDF-41DE-BBE0-360E08D717C6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Expand Up @@ -3,7 +3,9 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugType>Full</DebugType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="NBitcoin" Version="4.1.1.20" />
Expand Down
File renamed without changes.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions tests/ArkEcosystem.Crypto.Tests/Fixtures/Transactions/vote.json

This file was deleted.

0 comments on commit 914e804

Please sign in to comment.