Creating html from Nunit xml test results

I am generating xml output from nunit tests using:

nunit-console /xml:console-test.xml nunit.tests.dll 

How to create a report in table format using xml. Is there any tool for this?

+4
source share
2 answers

You can associate xml with a datagrid to display it as a table with multiple C # lines.

http://www.csharphelp.com/2006/10/binding-raw-xml-to-a-datagrid-control-in-asp-net/

Sort of:

 DataSet ds = new DataSet(); ds.ReadXml(Server.MapPath("console-test.xml"),XmlReadMode.InferSchema); this.DataGrid1.DataSource = ds; this.DataGrid1.DataBind(); 
0
source

Or use XSLT to generate HTML from xml.

0
source

Source: https://habr.com/ru/post/1314524/


All Articles