-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: port xunit and nunit loggers into testlogger repo. (#68)
* feat: port xunit and nunit loggers into testlogger repo. * chore: add new tests to CI * fix: revert preview feature usage. * chore: create nuget package for loggers.
- Loading branch information
Showing
74 changed files
with
3,909 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<!-- Test Assets use the minimum supported versions --> | ||
<NETTestSdkMinimumVersion>16.5.0</NETTestSdkMinimumVersion> | ||
<XunitVersion>2.3.1</XunitVersion> | ||
<XunitTestAdapterVersion>2.3.1</XunitTestAdapterVersion> | ||
<NUnitVersion>3.13.2</NUnitVersion> | ||
<NUnitTestAdapterVersion>4.0.0</NUnitTestAdapterVersion> | ||
<MSTestVersion>3.4.3</MSTestVersion> | ||
|
||
<!-- Only use stable versions of stylecop --> | ||
<StylecopVersion>1.1.118</StylecopVersion> | ||
</PropertyGroup> | ||
</Project> | ||
<!-- vim: set ft=xml : --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<PackageVersion Condition="'$(PackageVersion)' == ''">3.1.0-dev</PackageVersion> | ||
<PackageVersion Condition="'$(PackageVersion)' == ''">4.0.0-dev</PackageVersion> | ||
</PropertyGroup> | ||
</Project> | ||
<!-- vi: set ft=xml: --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<SourceRoot Condition="$(SourceRoot) == ''">..\..\</SourceRoot> | ||
</PropertyGroup> | ||
<Import Project="$(SourceRoot)scripts/settings.targets" /> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard1.5</TargetFramework> | ||
<Version>$(PackageVersion)</Version> | ||
<AssemblyName>NUnitXml.TestLogger</AssemblyName> | ||
|
||
<!-- This isn't an assembly --> | ||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> | ||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> | ||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> | ||
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute> | ||
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute> | ||
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute> | ||
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute> | ||
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute> | ||
<GenerateNeutralResourcesLanguageAttribute>false</GenerateNeutralResourcesLanguageAttribute> | ||
|
||
<!-- Don't create outputs during build or publish --> | ||
<CopyBuildOutputToOutputDirectory>false</CopyBuildOutputToOutputDirectory> | ||
<CopyOutputSymbolsToOutputDirectory>false</CopyOutputSymbolsToOutputDirectory> | ||
<CopyBuildOutputToPublishDirectory>false</CopyBuildOutputToPublishDirectory> | ||
<CopyOutputSymbolsToPublishDirectory>false</CopyOutputSymbolsToPublishDirectory> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
|
||
<!-- Disable warning that there are no source files. It is intentional. --> | ||
<NoWarn>$(NoWarn);2008;NU5127</NoWarn> | ||
|
||
<!-- Nuget pack configuration --> | ||
<NuspecFile>bin\$(Configuration)\$(TargetFramework)\NUnitXml.TestLogger.nuspec</NuspecFile> | ||
<NuspecProperties>version=$(Version)</NuspecProperties> | ||
<IncludeContentInPack>false</IncludeContentInPack> | ||
<IncludeBuildOutput>false</IncludeBuildOutput> | ||
<PackageIcon>packageIcon.png</PackageIcon> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\NUnit.Xml.TestLogger\NUnit.Xml.TestLogger.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="NUnitXml.TestLogger.props"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
<Content Include="NUnitXml.TestLogger.nuspec"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Update="packageIcon.png" Pack="true" PackagePath=""> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
|
||
<!-- Prevent Csc from being called --> | ||
<Target Name="CoreCompile" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0"?> | ||
<package > | ||
<metadata> | ||
<id>NunitXml.TestLogger</id> | ||
<version>$version$</version> | ||
<title>NunitXml.TestLogger</title> | ||
<authors>spekt</authors> | ||
<owners>spekt</owners> | ||
<projectUrl>https://github.com/spekt/nunit.testlogger</projectUrl> | ||
<description>Xml logger for NUnit v3 compliant xml report when test is running with "dotnet test" or "dotnet vstest".</description> | ||
<license type="expression">MIT</license> | ||
<icon>packageIcon.png</icon> | ||
</metadata> | ||
<files> | ||
<file src="Microsoft.VisualStudio.TestPlatform.Extension.Nunit.Xml.TestLogger.dll" target="build\_common\" /> | ||
<file src="Spekt.TestLogger.dll" target="build\_common\" /> | ||
<file src="packageIcon.png" target="\" /> | ||
|
||
<!-- Net Core --> | ||
<file src="NunitXml.TestLogger.props" target="build\netstandard1.0\" /> | ||
|
||
<!-- Desktop --> | ||
<file src="NunitXml.TestLogger.props" target="build\net45\" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<Content Include="$(MSBuildThisFileDirectory)..\_common\Microsoft.VisualStudio.TestPlatform.Extension.NUnit.Xml.TestLogger.dll"> | ||
<Link>Microsoft.VisualStudio.TestPlatform.Extension.NUnit.Xml.TestLogger.dll</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
<Content Include="$(MSBuildThisFileDirectory)..\_common\Spekt.TestLogger.dll"> | ||
<Link>Spekt.TestLogger.dll</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
</ItemGroup> | ||
</Project> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) Spekt Contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
// <auto-generated> | ||
// Skip code analysis errors. | ||
// </auto-generated> | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
|
||
[assembly: ExcludeFromCodeCoverage] | ||
|
||
namespace System.Diagnostics.CodeAnalysis | ||
{ | ||
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Event | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Struct, AllowMultiple = false, Inherited = false)] | ||
internal sealed class ExcludeFromCodeCoverageAttribute : Attribute { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<SourceRoot Condition="$(SourceRoot) == ''">..\..\</SourceRoot> | ||
</PropertyGroup> | ||
<Import Project="$(SourceRoot)scripts/settings.targets" /> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard1.5</TargetFramework> | ||
<AssemblyName>Microsoft.VisualStudio.TestPlatform.Extension.NUnit.Xml.TestLogger</AssemblyName> | ||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Label="Configuration"> | ||
<RootNamespace>Microsoft.VisualStudio.TestPlatform.Extension.NUnit.Xml.TestLogger</RootNamespace> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="../TestLogger/TestLogger.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="15.5.0" /> | ||
<PackageReference Include="System.ValueTuple" Version="4.3.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.