diff --git a/assets/nuget_cli.png b/assets/nuget_cli.png new file mode 100644 index 0000000..dab0c90 Binary files /dev/null and b/assets/nuget_cli.png differ diff --git a/src/LiquidTestReports.Cli/LiquidTestReports.Cli.csproj b/src/LiquidTestReports.Cli/LiquidTestReports.Cli.csproj index dd4f997..caa448d 100644 --- a/src/LiquidTestReports.Cli/LiquidTestReports.Cli.csproj +++ b/src/LiquidTestReports.Cli/LiquidTestReports.Cli.csproj @@ -2,21 +2,32 @@ Exe - netcoreapp3.1 + netcoreapp2.1;netcoreapp3.1;net5.0 true liquid ./nupkg + https://github.com/kurtmkurtm/LiquidTestReports + https://github.com/kurtmkurtm/LiquidTestReports + LICENSE + nuget_cli.png - - - + + + True + + + + True + + + True @@ -24,12 +35,18 @@ Templates.resx - ResXFileCodeGenerator Templates.Designer.cs - + + LiquidTestReports.Cli + Kurt Murrell + LiquidTestReports.Cli + LiquidTestReports.Cli + 2021 + .NET tool to combine and convert TRX tests reports into Markdown with Liquid template support + diff --git a/src/LiquidTestReports.Cli/Loaders/TrxLoader.cs b/src/LiquidTestReports.Cli/Loaders/TrxLoader.cs index 4de32c7..4148b7d 100644 --- a/src/LiquidTestReports.Cli/Loaders/TrxLoader.cs +++ b/src/LiquidTestReports.Cli/Loaders/TrxLoader.cs @@ -1,8 +1,5 @@ -using LiquidTestReports.Cli.adapters; -using LiquidTestReports.Core.Drops; -using Schemas.VisualStudio.TeamTest; +using Schemas.VisualStudio.TeamTest; using System.IO; -using System.Text.Json; using System.Xml.Serialization; namespace LiquidTestReports.Cli.Loaders @@ -12,11 +9,11 @@ internal class TrxLoader internal static TestRunType FromFile(string file) { var ser = new XmlSerializer(typeof(TestRunType)); - using var reader = new StreamReader(file); - - if (ser.Deserialize(reader) is TestRunType results) - return results; - + using (var reader = new StreamReader(file)) + { + if (ser.Deserialize(reader) is TestRunType results) + return results; + } throw new InvalidDataException($"Provided file {file} could not be deserialised, check file is valid TRX XML"); } } diff --git a/src/LiquidTestReports.Core/LiquidTestReports.Core.csproj b/src/LiquidTestReports.Core/LiquidTestReports.Core.csproj index 82d2e49..8322f22 100644 --- a/src/LiquidTestReports.Core/LiquidTestReports.Core.csproj +++ b/src/LiquidTestReports.Core/LiquidTestReports.Core.csproj @@ -29,10 +29,6 @@ True - - True - - LiquidTestReports.Core diff --git a/src/LiquidTestReports.Custom/LiquidTestReports.Custom.csproj b/src/LiquidTestReports.Custom/LiquidTestReports.Custom.csproj index 9ab09f1..ac4eafc 100644 --- a/src/LiquidTestReports.Custom/LiquidTestReports.Custom.csproj +++ b/src/LiquidTestReports.Custom/LiquidTestReports.Custom.csproj @@ -17,10 +17,6 @@ True - - True - -