Skip to content

Commit

Permalink
Merge 0d9b30e into 9a52013
Browse files Browse the repository at this point in the history
  • Loading branch information
huaxing-yuan authored Jun 9, 2023
2 parents 9a52013 + 0d9b30e commit 5d6adca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/AxaFrance.WebEngine/Report/ReportHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using System.Xml;
using System.Xml.Serialization;
using System.Xml.Xsl;
using System.Runtime.InteropServices;

namespace AxaFrance.WebEngine.Report
{
Expand Down Expand Up @@ -97,6 +98,9 @@ public static string GenerateJUnitReport(TestSuiteReport report, string testname
/// <returns></returns>
public static string GenerateHtmlReport(TestSuiteReport report, string testname, string outputPath)
{
#if NET
AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true);
#endif
var assetFolder = ExtractResource("html-report.zip");
var xslt = Path.Combine(assetFolder, "xslt", "index.xslt");
//conver report to xml and transform to html with xslt
Expand Down
2 changes: 1 addition & 1 deletion src/WebEngine.Test/WebEngine.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down

0 comments on commit 5d6adca

Please sign in to comment.