Search code examples
nunit-3.0extentreportsextentreportunit

Merge NUnit3 XMLs into one HTML for publishing to Jenkins


I have multiple testresult.xml (say testresultMachine1.xml, testresultMachin2.xml etc.) that I get by running my nunit3 tests on different machines during a Jenkins pipeline build.

Now, I want to merge these XMLs on the master node and use extent.exe from https://github.com/extent-framework/extentreports-dotnet-cli to generate a single consolidated html report from multiple xmls.

However, I observe that extent.exe creates a separate folder for each testresult.xml e.g. a folder called testresultMachine1, testresultMachine2 and so on, where each of these have their own index.html and dashboard.html.

How can I get a single consolidated index.html and dashboard.html? Is extent.exe the right tool since ReportUnit is being deprecated.


Solution

  • This is currently not possible, but I have raised an enhancement for it here: https://github.com/extent-framework/extentreports-dotnet-cli/issues/6.

    *EDIT

    Merge is now possible with the --merge arg.