Skip to content

Commit e4514c8

Browse files
authored
Feat: Add Logo (#68)
* Feat: Add Logo * Chore: Update StyleCopAnalyzer to stable package * Fix. Prefix local calls with this. * Fix: Update stylecop in scripts\dependencies.props
1 parent 86ab933 commit e4514c8

File tree

6 files changed

+28
-19
lines changed

6 files changed

+28
-19
lines changed

scripts/dependencies.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
<NUnitVersion>3.10.1</NUnitVersion>
1111
<NUnitTestAdapterVersion>3.10.0</NUnitTestAdapterVersion>
1212

13-
<StylecopVersion>1.1.0-beta009</StylecopVersion>
13+
<StylecopVersion>1.1.118</StylecopVersion>
1414
</PropertyGroup>
1515
</Project>

src/NUnit.Xml.TestLogger/TestResultInfo.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,35 +23,35 @@ public TestResultInfo(
2323
this.Method = method;
2424
}
2525

26-
public TestCase TestCase => result.TestCase;
26+
public TestCase TestCase => this.result.TestCase;
2727

28-
public TestOutcome Outcome => result.Outcome;
28+
public TestOutcome Outcome => this.result.Outcome;
2929

30-
public string AssemblyPath => result.TestCase.Source;
30+
public string AssemblyPath => this.result.TestCase.Source;
3131

3232
public string Namespace { get; private set; }
3333

3434
public string Type { get; private set; }
3535

36-
public string FullTypeName => Namespace + "." + Type;
36+
public string FullTypeName => this.Namespace + "." + this.Type;
3737

3838
public string Method { get; private set; }
3939

40-
public string Name => result.TestCase.DisplayName;
40+
public string Name => this.result.TestCase.DisplayName;
4141

42-
public DateTime StartTime => result.StartTime.UtcDateTime;
42+
public DateTime StartTime => this.result.StartTime.UtcDateTime;
4343

44-
public DateTime EndTime => result.EndTime.UtcDateTime;
44+
public DateTime EndTime => this.result.EndTime.UtcDateTime;
4545

46-
public TimeSpan Duration => result.Duration;
46+
public TimeSpan Duration => this.result.Duration;
4747

48-
public string ErrorMessage => result.ErrorMessage;
48+
public string ErrorMessage => this.result.ErrorMessage;
4949

50-
public string ErrorStackTrace => result.ErrorStackTrace;
50+
public string ErrorStackTrace => this.result.ErrorStackTrace;
5151

52-
public IReadOnlyCollection<TestResultMessage> Messages => result.Messages;
52+
public IReadOnlyCollection<TestResultMessage> Messages => this.result.Messages;
5353

54-
public TraitCollection Traits => result.Traits;
54+
public TraitCollection Traits => this.result.Traits;
5555

5656
public override int GetHashCode()
5757
{
@@ -73,4 +73,4 @@ public override bool Equals(object obj)
7373
return false;
7474
}
7575
}
76-
}
76+
}

src/package/NUnitXml.TestLogger.nuspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44
<id>NunitXml.TestLogger</id>
55
<version>$version$</version>
66
<title>NunitXml.TestLogger</title>
7-
<authors>codito,faizan2304,smadala,lahma</authors>
8-
<owners>codito,faizan2304,smadala</owners>
7+
<authors>codito,siphonophora,faizan2304,smadala,lahma</authors>
8+
<owners>codito,siphonophora,faizan2304,smadala</owners>
99
<projectUrl>https://github.com/spekt/nunit.testlogger</projectUrl>
1010
<description>Xml logger for NUnit v3 compliant xml report when test is running with "dotnet test" or "dotnet vstest".</description>
1111
<license type="expression">MIT</license>
12+
<icon>packageIcon.png</icon>
1213
</metadata>
1314
<files>
1415
<file src="Microsoft.VisualStudio.TestPlatform.Extension.Nunit.Xml.TestLogger.dll" target="build\_common\" />
1516
<file src="Microsoft.VisualStudio.TestPlatform.Extension.Nunit.Xml.TestAdapter.dll" target="build\_common\" />
17+
<file src="packageIcon.png" target="\" />
1618

1719
<!-- Net Core -->
1820
<file src="NunitXml.TestLogger.props" target="build\netstandard1.0\" />

src/package/package.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<NuspecProperties>version=$(Version)</NuspecProperties>
3636
<IncludeContentInPack>false</IncludeContentInPack>
3737
<IncludeBuildOutput>false</IncludeBuildOutput>
38+
<PackageIcon>packageIcon.png</PackageIcon>
3839
</PropertyGroup>
3940

4041
<ItemGroup>
@@ -51,6 +52,12 @@
5152
</Content>
5253
</ItemGroup>
5354

55+
<ItemGroup>
56+
<None Update="packageIcon.png" Pack="true" PackagePath="">
57+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
58+
</None>
59+
</ItemGroup>
60+
5461
<!--<Target Name="AfterBuild">-->
5562
<!--<Copy SourceFiles="NUnitXml.TestLogger.props" DestinationFolder="build\netstandard1.0" SkipUnchangedFiles="true" />-->
5663
<!--<Copy SourceFiles="NUnitXml.TestLogger.props" DestinationFolder="build\net45" SkipUnchangedFiles="true" />-->

src/package/packageIcon.png

10.1 KB
Loading

test/NUnit.Xml.TestLogger.AcceptanceTests/NUnit.Xml.TestLogger.AcceptanceTests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
<Target Name="TestTarget" AfterTargets="Build">
2424
<Message Importance="High" Text="... Building test assets" />
2525
<RemoveDir Directories="$(NuGetPackageRoot)/nunitxml.testlogger" />
26-
<Exec ContinueOnError="False" Command="dotnet build -c $(Configuration) -p:PackageVersion=$(PackageVersion) -p:RestoreConfigFile=$(TestRestoreConfig) -p:RestoreIgnoreFailedSources=true -p:RestoreNoCache=true $(TestCoreProject)"/>
27-
<Exec ContinueOnError="False" Command="dotnet build -c $(Configuration) -p:PackageVersion=$(PackageVersion) -p:RestoreConfigFile=$(TestRestoreConfig) -p:RestoreIgnoreFailedSources=true -p:RestoreNoCache=true $(TestFullProject)"/>
28-
<Exec ContinueOnError="False" Command="dotnet build -c $(Configuration) -p:PackageVersion=$(PackageVersion) -p:RestoreConfigFile=$(TestRestoreConfig) -p:RestoreIgnoreFailedSources=true -p:RestoreNoCache=true $(TestMultiProject)"/>
26+
<Exec ContinueOnError="False" Command="dotnet build -c $(Configuration) -p:PackageVersion=$(PackageVersion) -p:RestoreConfigFile=$(TestRestoreConfig) -p:RestoreIgnoreFailedSources=true -p:RestoreNoCache=true $(TestCoreProject)" />
27+
<Exec ContinueOnError="False" Command="dotnet build -c $(Configuration) -p:PackageVersion=$(PackageVersion) -p:RestoreConfigFile=$(TestRestoreConfig) -p:RestoreIgnoreFailedSources=true -p:RestoreNoCache=true $(TestFullProject)" />
28+
<Exec ContinueOnError="False" Command="dotnet build -c $(Configuration) -p:PackageVersion=$(PackageVersion) -p:RestoreConfigFile=$(TestRestoreConfig) -p:RestoreIgnoreFailedSources=true -p:RestoreNoCache=true $(TestMultiProject)" />
2929
<Message Importance="High" Text="... Completed" />
3030
</Target>
3131
</Project>

0 commit comments

Comments
 (0)