ghpreporter / ghpr.console Goto Github PK
View Code? Open in Web Editor NEWConsole application to convert NUnit and MSTest test result files into Ghpr HTML Report
Home Page: http://ghpreporter.github.io/
License: MIT License
Console application to convert NUnit and MSTest test result files into Ghpr HTML Report
Home Page: http://ghpreporter.github.io/
License: MIT License
Hey Guys,
I'm very happy that you added Ghpr.Console it's cool. Do you have any idea how I can add screenshots to my report? Is it possible?
Cheers,
Michal
Hello,
I downloaded the Ghpr.Console from the VS nuget for my project and it's in the package of project.
I had already TestReport.xml that generated by nunit3-console.exe. I just want to use the Ghpr.Console.exe to convert the TestReport.xml files to html.
$ ./Ghpr.Console.exe TestReport.xml
The execution will be failed....
So is there any dependency of Ghpr.Console.exe ? or is there anything that missed?
To get this up and running is dependent on downloading the is and all dependencies distributing as a .NET tool would help manage this and simplify installation.
As part of this it would be nice to provide the configuration files as arguments as I think the console application is dependent on having configuration in the same directory as the application.
Describe the bug
I use the latest version of NUnit console runner to execute some test cases from a testcase.dll, and get an XML result in Nunit3 XML format.
After I use GHPReport console runner to convert it into HMTL result. in "Test details" page, 'Main' Tab looks good, but 'Output' Tab is empty.
I go back and check in the original XML result file, there do have some out logs, it just not showing up in the converted HTML file.
To Reproduce
Steps to reproduce the behavior:
Execute testcases.dll with latest Nunit3 console runner, and get an XML format result file.
Use GHPReporter_console to convert XML file into HTML files. using code $originalTestResultFile = "C:\TestResults\NunitTestResult.xml" C:\GHPReporter\GHPReporter_console\Ghpr.Console.exe $originalTestResultFile
in powershell.
This image is what's in my GHPReporter_console folder:
We open the HTML result page and go to any Test details page. We can see that 'Main' Tab looks good, but 'Output' and 'Extra output' Tabs are empty. please see 2 images below:
I go back and check the XML file, I do see expect 'output' part has value like:
Expected behavior
In HTML files, we expect the 'Output' tab to have the value that exists in XML file
Screenshots
Please see screenshots above
Desktop (please complete the following information):
Attached XML file and HTML files
Attached the original XML file and the result HTMLs I generated with console runner.
XML+HTMLs.zip
I'm setting the Retention amount and till, but old runs remain in the newly generated report.
Steps to reproduce the behavior:
I’ve adjusted the ‘amount’ from 1000 down to 3. When I generate a new report, the ‘Total Runs’ continues to tick up. I’ve adjusted the ‘till’ from "2017-01-25 10:00:00" to "2019-11-27 13:34:00" (Current Date/Time) and when I generate a new report, ALL previously generated reports remain. It does not appear that any reports are removed.
Expected behavior
Expected reports prior to “2019-11-27 13:34:00” to be removed. I expected reports with highlighted dates to be removed.
Also expected 'Total Runs' to not exceed 3, but every time a run is executed, the Total Runs increments by one:
I was also expect file generated prior to “2019-11-27 13:34:00” to be removed from the 'runs' folder...but they remain.
Ghpr.Core.settings.json:
{
"default": {
"outputPath": "C:\ProgramData\Selenium\GHPRReport\Reports\OctopusMaintenance\ALL",
"dataServiceFile": "Ghpr.LocalFileSystem.dll",
"loggerFile": "",
"sprint": "",
"reportName": "OctopusMaintenance",
"projectName": "P1-P2",
"runName": "11/27/19_13:38:33",
"runGuid": "",
"realTimeGeneration": "True",
"runsToDisplay": "15",
"testsToDisplay": "1000",
"retention": {
"amount": 3,
"till": "2019-11-27 13:34:00"
}
},
"projects": null
}
I'm concerned that if 'clean up job' doesn't run, I'll eventually consume all the disk space.
NUGET Package:
I’m using NUGET packages:
Ghpr.Console version="0.9.9.1"
Ghpr.Core version="0.9.9.9"
Ghpr.LocalFileSystem version="0.9.9.9"
Ghpr.MSTestV2 version="0.9.9.1"
Ghpr.NUnit version="0.9.9.9"
MSTest.TestAdapter version="1.4.0"
MSTest.TestFramework version="1.4.0"
NUnit version="3.12.0"
NUnit.Engine version="3.10.0"
Browser: Chrome
I'm trying to use this in combination with Nunit
and dotnet test ...
the XML report generated is valid, all the dependencies are in there, the executable runs without giving any errors. I get the following
Ghpr.Console.exe Common.Tests/test-result.xml
Generating the report for the file 'Common.Tests/test-result.xml'...
Generating the report done.
The report is nowhere to be found. I've also tried the Nunit version of GHPReported can't get any of them to work.
C:\Work\Sources\Automation\packages\Ghpr.Console.0.8.1\lib>Ghpr.Console.exe C:\Work\Sources\Automation\TestResult.xml
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Ghpr.NUnit, Version=0.8.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
at Ghpr.Console.ReportHelper.GenerateReport(String path)
at Ghpr.Console.Program.Main(String[] paths)
This is the same request than for Ghpr.MSTestV2, but here for Ghpr.Console.
I have some screenshots attached to my tests, so I would like to have also these screenshots in the GHPR report please.
Regards,
Yannick
Hello,
Bug:
While trying Ghpr.Console on Ghpr.Examples, it produced an empty report.
How to reproduce:
NUnit.Settings.json looks like this:
{ "default": { "outputPath": "C:\\", "dataServiceFile": "Ghpr.LocalFileSystem.dll", "loggerFile": "", "sprint": "", "reportName": "GHP Report", "projectName": "Examples Projet", "runName": "", "runGuid": "", "realTimeGeneration": "True", "runsToDisplay": "5", "testsToDisplay": "5", "retention": { "amount": 1000, "till": "2020-01-25 10:00:00" } }, "projects": [ { "pattern": "Ghpr.NUnitExamples.dll", "settings": { "outputPath": "C:\\Users\\suyttenhove\\Documents\\TestGHPR\\Ghpr.NUnit.Examples\\bin\\x86\\Debug\\" } } ] }
Would you have an idea as to why no Runs are reported?
When I use Extent Reports to produce the report, I get the correct result:
Thanks,
Simon
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.