Skip to content
Permalink
Browse files

Added base project setup for testing

  • Loading branch information...
Turnerj committed Dec 30, 2018
1 parent 4a40ba9 commit ab49cf3390d2910c3eeeec08dd96ff6f8684e154
@@ -0,0 +1,29 @@
version: '0.1.0+{build}'
image: Visual Studio 2017
skip_branch_with_pr: true
branches:
only:
- master
skip_commits:
files:
- '**/*.md'

build:
verbosity: minimal
install:
- choco install opencover codecov


build_script:
- dotnet build -c Release
- dotnet pack --no-build -c Release /p:PackageOutputPath=..\..\.nupkgs
test_script:
- OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test tests/InfinityCrawler.Tests/InfinityCrawler.Tests.csproj /p:DebugType=Full" -filter:"+[InfinityCrawler]* -[InfinityCrawler.Tests]*" -output:".\coverage.xml" -oldstyle
- codecov -f coverage.xml


artifacts:
- path: '.nupkgs\*.nupkg'

- path: coverage.xml
name: Coverage Report
@@ -0,0 +1 @@
comment: off
@@ -5,16 +5,23 @@ VisualStudioVersion = 15.0.28307.168
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "global", "global", "{F0B4D082-200A-4DD3-9291-872B7F2A991E}"
ProjectSection(SolutionItems) = preProject
.appveyor.yml = .appveyor.yml
.codecov.yml = .codecov.yml
.editorconfig = .editorconfig
LICENSE = LICENSE
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{C6187826-9F4B-4E85-90D1-BC46A0F7F8F1}"
ProjectSection(SolutionItems) = preProject
src\Directory.build.props = src\Directory.build.props
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{46BF0980-A8A4-492E-8652-0725ADB6A683}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InfinityCrawler", "src\InfinityCrawler\InfinityCrawler.csproj", "{90361E0D-CB4C-4BCC-AAF2-70DAF87D5565}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InfinityCrawler", "src\InfinityCrawler\InfinityCrawler.csproj", "{90361E0D-CB4C-4BCC-AAF2-70DAF87D5565}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InfinityCrawler.Tests", "tests\InfinityCrawler.Tests\InfinityCrawler.Tests.csproj", "{F30AF2A4-C53F-40FE-8083-6A82C0583255}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -26,12 +33,17 @@ Global
{90361E0D-CB4C-4BCC-AAF2-70DAF87D5565}.Debug|Any CPU.Build.0 = Debug|Any CPU
{90361E0D-CB4C-4BCC-AAF2-70DAF87D5565}.Release|Any CPU.ActiveCfg = Release|Any CPU
{90361E0D-CB4C-4BCC-AAF2-70DAF87D5565}.Release|Any CPU.Build.0 = Release|Any CPU
{F30AF2A4-C53F-40FE-8083-6A82C0583255}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F30AF2A4-C53F-40FE-8083-6A82C0583255}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F30AF2A4-C53F-40FE-8083-6A82C0583255}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F30AF2A4-C53F-40FE-8083-6A82C0583255}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{90361E0D-CB4C-4BCC-AAF2-70DAF87D5565} = {C6187826-9F4B-4E85-90D1-BC46A0F7F8F1}
{F30AF2A4-C53F-40FE-8083-6A82C0583255} = {46BF0980-A8A4-492E-8652-0725ADB6A683}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {FC9AB8BE-670B-4F26-9F17-73D2C0DECA6A}
@@ -0,0 +1,37 @@
<Project>
<PropertyGroup>
<VersionPrefix>0.1.0</VersionPrefix>

<RootNamespace>InfinityCrawler</RootNamespace>

<Company>Turner Software</Company>

<PackageId>$(AssemblyName)</PackageId>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseUrl>https://github.com/TurnerSoftware/InfinityCrawler/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/TurnerSoftware/InfinityCrawler</PackageProjectUrl>
<PackageBaseTags>crawler;robot;spider</PackageBaseTags>

<RepositoryUrl>https://github.com/TurnerSoftware/InfinityCrawler.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<RepositoryBranch>master</RepositoryBranch>

<!-- SourceLink Support -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>

<DebugSymbols>true</DebugSymbols>
<DebugType>embedded</DebugType>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All" />
</ItemGroup>

</Project>
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

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

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="MSTest.TestAdapter" Version="1.3.2" />
<PackageReference Include="MSTest.TestFramework" Version="1.3.2" />
</ItemGroup>

</Project>
@@ -0,0 +1,13 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace InfinityCrawler.Tests
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
}
}
}

0 comments on commit ab49cf3

Please sign in to comment.
You can’t perform that action at this time.