Коммит
cb528fa82b
|
@ -1,5 +1,5 @@
|
|||
version: 3.5.{build}
|
||||
image: Visual Studio 2015
|
||||
image: Visual Studio 2017
|
||||
|
||||
build_script:
|
||||
- ps: .\build.ps1 -Target "Appveyor"
|
||||
|
|
23
build.cake
23
build.cake
|
@ -1,4 +1,4 @@
|
|||
#tool nuget:?package=NUnit.ConsoleRunner&version=3.7.0
|
||||
#tool nuget:?package=NUnit.ConsoleRunner&version=3.11.1
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// PROJECT-SPECIFIC
|
||||
|
@ -8,12 +8,13 @@
|
|||
// main changes needed should be in this section.
|
||||
|
||||
var SOLUTION_FILE = "nunit-v2-result-writer.sln";
|
||||
var OUTPUT_ASSEMBLY = "nunit-v2-result-writer.dll";
|
||||
var UNIT_TEST_ASSEMBLY = "nunit-v2-result-writer.tests.dll";
|
||||
var GITHUB_SITE = "https://github.com/nunit/nunit-v2-result-writer";
|
||||
var WIKI_PAGE = "https://github.com/nunit/docs/wiki/Console-Command-Line";
|
||||
var NUGET_ID = "NUnit.Extension.NUnitV2ResultWriter";
|
||||
var CHOCO_ID = "nunit-extension-nunit-v2-result-writer";
|
||||
var VERSION = "3.6.0";
|
||||
var VERSION = "3.7.0";
|
||||
|
||||
// Metadata used in the nuget and chocolatey packages
|
||||
var TITLE = "NUnit 3 - NUnit V2 Result Writer Extension";
|
||||
|
@ -24,6 +25,11 @@ var SUMMARY = "NUnit Engine extension for writing test result files in NUnit V2
|
|||
var COPYRIGHT = "Copyright (c) 2016 Charlie Poole";
|
||||
var RELEASE_NOTES = new [] { "See https://raw.githubusercontent.com/nunit/nunit-v2-result-writer/master/CHANGES.txt" };
|
||||
var TAGS = new [] { "nunit", "test", "testing", "tdd", "runner" };
|
||||
var TARGET_FRAMEWORKS = new [] { "net20", "netcoreapp2.1" };
|
||||
|
||||
// We don't support running tests built with .net core yet
|
||||
// var TEST_TARGET_FRAMEWORKS = TARGET_FRAMEWORKS
|
||||
var TEST_TARGET_FRAMEWORKS = new [] { "net20" };
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// ARGUMENTS
|
||||
|
@ -180,7 +186,7 @@ Task("Test")
|
|||
.IsDependentOn("Build")
|
||||
.Does(() =>
|
||||
{
|
||||
NUnit3(BIN_DIR + UNIT_TEST_ASSEMBLY);
|
||||
NUnit3(TEST_TARGET_FRAMEWORKS.Select(framework => System.IO.Path.Combine(BIN_DIR, framework, UNIT_TEST_ASSEMBLY)));
|
||||
});
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@ -197,6 +203,12 @@ var BUG_TRACKER_URL = new Uri(GITHUB_SITE + "/issues");
|
|||
var DOCS_URL = new Uri(WIKI_PAGE);
|
||||
var MAILING_LIST_URL = new Uri("https://groups.google.com/forum/#!forum/nunit-discuss");
|
||||
|
||||
// Nuspec-files don't handle forward slash in path in combination with recursive wildcards
|
||||
// https://github.com/cake-build/cake/issues/2367
|
||||
// https://github.com/NuGet/Home/issues/3584
|
||||
var TOOLS_SOURCE = BIN_SRC + "**/" + OUTPUT_ASSEMBLY;
|
||||
TOOLS_SOURCE = TOOLS_SOURCE.Replace("/", @"\");
|
||||
|
||||
Task("RePackageNuGet")
|
||||
.Does(() =>
|
||||
{
|
||||
|
@ -221,10 +233,11 @@ Task("RePackageNuGet")
|
|||
Tags = TAGS,
|
||||
//Language = "en-US",
|
||||
OutputDirectory = OUTPUT_DIR,
|
||||
KeepTemporaryNuSpecFile = false,
|
||||
Files = new [] {
|
||||
new NuSpecContent { Source = PROJECT_DIR + "LICENSE.txt" },
|
||||
new NuSpecContent { Source = PROJECT_DIR + "CHANGES.txt" },
|
||||
new NuSpecContent { Source = BIN_SRC + "nunit-v2-result-writer.dll", Target = "tools" }
|
||||
new NuSpecContent { Source = TOOLS_SOURCE, Target = "tools" },
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -262,7 +275,7 @@ Task("RePackageChocolatey")
|
|||
new ChocolateyNuSpecContent { Source = PROJECT_DIR + "LICENSE.txt", Target = "tools" },
|
||||
new ChocolateyNuSpecContent { Source = PROJECT_DIR + "CHANGES.txt", Target = "tools" },
|
||||
new ChocolateyNuSpecContent { Source = PROJECT_DIR + "VERIFICATION.txt", Target = "tools" },
|
||||
new ChocolateyNuSpecContent { Source = BIN_SRC + "nunit-v2-result-writer.dll", Target = "tools" }
|
||||
new ChocolateyNuSpecContent { Source = TOOLS_SOURCE, Target = "tools" }
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,11 +1,23 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.25420.1
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.30320.27
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nunit-v2-result-writer", "src\extension\nunit-v2-result-writer.csproj", "{AECFA3FB-E55A-4151-9DEA-F715FBB972BA}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "nunit-v2-result-writer", "src\extension\nunit-v2-result-writer.csproj", "{AECFA3FB-E55A-4151-9DEA-F715FBB972BA}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nunit-v2-result-writer.tests", "src\tests\nunit-v2-result-writer.tests.csproj", "{9A2892BF-2E7A-4D32-8ED9-3971A9EB959E}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "nunit-v2-result-writer.tests", "src\tests\nunit-v2-result-writer.tests.csproj", "{9A2892BF-2E7A-4D32-8ED9-3971A9EB959E}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{5F2D8428-EF74-449E-ADD6-505D20751D12}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
.travis.yml = .travis.yml
|
||||
appveyor.yml = appveyor.yml
|
||||
build = build
|
||||
build.cake = build.cake
|
||||
build.cmd = build.cmd
|
||||
build.ps1 = build.ps1
|
||||
build.sh = build.sh
|
||||
NuGet.config = NuGet.config
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
@ -25,4 +37,7 @@ Global
|
|||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {F9258C05-1EEA-485D-BC8E-69A1D6EFE5DC}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
|
|
@ -1,60 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{AECFA3FB-E55A-4151-9DEA-F715FBB972BA}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<!-- If adding/updating TargetFrameworks, also update build.cake -->
|
||||
<TargetFrameworks>net20;netcoreapp2.1</TargetFrameworks>
|
||||
<Configurations>Debug;Release</Configurations>
|
||||
<RootNamespace>NUnit.Engine.Addins</RootNamespace>
|
||||
<AssemblyName>nunit-v2-result-writer</AssemblyName>
|
||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\..\bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<OutputPath>..\..\bin\$(Configuration)\</OutputPath>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="nunit.engine.api, Version=3.0.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\NUnit.Engine.Api.3.7.0\lib\nunit.engine.api.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
<PackageReference Include="nunit.engine.api" Version="3.11.1" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="NUnit2ResultSummary.cs" />
|
||||
<Compile Include="NUnit2XmlResultWriter.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SafeAttributeAccess.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="NUnit.Engine.Api" version="3.7.0" targetFramework="net20" />
|
||||
</packages>
|
|
@ -1,70 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{9A2892BF-2E7A-4D32-8ED9-3971A9EB959E}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<!-- If adding/updating TargetFrameworks, also update build.cake -->
|
||||
<!-- Even though we don't support running tests build for netcoreapp2.1 yet, we still build for it -->
|
||||
<TargetFrameworks>net20;netcoreapp2.1</TargetFrameworks>
|
||||
<Configurations>Debug;Release</Configurations>
|
||||
<RootNamespace>NUnit.Engine.Tests</RootNamespace>
|
||||
<AssemblyName>nunit-v2-result-writer.tests</AssemblyName>
|
||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\..\bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<OutputPath>..\..\bin\$(Configuration)\</OutputPath>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="nunit.engine.api, Version=3.0.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\NUnit.Engine.Api.3.7.0\lib\nunit.engine.api.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="nunit.framework, Version=3.7.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\NUnit.3.7.1\lib\net20\nunit.framework.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="NUnit.System.Linq, Version=0.6.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\NUnit.3.7.1\lib\net20\NUnit.System.Linq.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
<PackageReference Include="nunit.engine.api" Version="3.11.1" />
|
||||
|
||||
<!-- This is the newest NUnit that support .NET Framework 2.0 -->
|
||||
<PackageReference Include="NUnit" Version="3.11.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="NUnit2XmlResultWriterTests.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<ProjectReference Include="..\extension\nunit-v2-result-writer.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\extension\nunit-v2-result-writer.csproj">
|
||||
<Project>{aecfa3fb-e55a-4151-9dea-f715fbb972ba}</Project>
|
||||
<Name>nunit-v2-result-writer</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="NUnit" version="3.7.1" targetFramework="net20" />
|
||||
<package id="NUnit.Engine.Api" version="3.7.0" targetFramework="net20" />
|
||||
</packages>
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Cake" version="0.15.2" />
|
||||
<package id="Cake" version="0.38.4" />
|
||||
</packages>
|
||||
|
|
Загрузка…
Ссылка в новой задаче