ghpreporter / ghpr.core Goto Github PK
View Code? Open in Web Editor NEWEasy-to-use .NET Html QA Reporting framework (Core repository)
Home Page: http://ghpreporter.github.io/
License: MIT License
Easy-to-use .NET Html QA Reporting framework (Core repository)
Home Page: http://ghpreporter.github.io/
License: MIT License
This would help to track the order of the tests within one test run
Each test point should be a link to the corresponding test version
Running nunit3-console.exe "My.dll" gives me this error:
Could not load file or assembly 'Ghpr.Core, Version=0.9.9.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Steps to reproduce this behaviour:
Here is how my packages.config file looks like:
Expected behavior
The command should execute and my tests should be run. It is a VS2017 unit test project containing 2 simple Selenium tests.
Desktop (please complete the following information):
Hi I have experience in Java/cucumber but right now working on Specflow/C# and I am looking out for the custom reporting add-on for the specflow project. And I am intrested in GHPReporter. I have downloaded and the GHPReporter for Specflow along with the dependencies. And I am launching the chrome with the options specified, but eventhough when I run (through Visual Studio) the specflow with GHPReporter configured [with default settings] I am not getting the report generated but my specflow is getting executed. Is there anything that I am missing?
Test list tree is now generated by test name split by dot. As there could be many nested levels, categories takes too much space. E.g.
It would be great to have option to switch to "collapsed version", this would look like e.g.
Another suggestion is to add option to disable displaying empty categories (after filtering some tests out), e.g.
Should become
Would be great if both options could become default for user, so storing these options to cookies would be great.
Newer version needed
NuGet package does not include .config file
Hi,
any possibility to add an option to configure how many test runs should be displayed?
Right now, when there is more than 30 test runs, the report is very disarranged.
I would like to set how many latest test runs should be displayed.
Thanks,
Peter
This step needed to make sure that report uses the latest versions of index.html and .js files
Would be nice to have an option to have time chart with predefined period of time instead or aside common chart in main view.
Chart could load all results based on timestamp instead of predefined number of runs.
Chart should display number of passed tests (maybe possibility to change filter? or define type of output in cfg?)
This could help identify issues over time instead of single runs.
Make report name configurable, probably the value should be taken from report's .json
settings
Put Core version number somwhere on the report page, just to make sure that in the next releases new report will contain information about Core library version.
In that case we won't need to spend much time on investigating which Core version produced the report.
Hi,
I want to know is possible to combine existing testresult.xml file with next created testresult.xml file in GHPReporter?
I have a requirement to logout the system and start the test again . But the previously executed testresults.xml is replaced by newly one.
Please help me.
Regards,
George
Hey!
We have one diagnostics project for monitoring different products(web1/web2..) in different environments (qa/test/beta).
Is it possible to pass Ghpr.NUnit.Settings.json or output path dynamically though nunit parameters ?
Cherrs,
Kiran
Test message should be escaped before displaying, ATM, I can experience issues with <> characters. E.g.
json source
"testMessage":"a<b"
results in displaying
Message: a
I am also trying to map the field you display with the list of attributes from nunit.
So far I don't know about Priority, Test type and Message.
.
New version is required
Hello,
When I run my project with the Ghpr integrated with the current .ddls I get the following error:
"Could not load file or assembly 'nunit.engine, Version=3.4.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb' or one of its dependencies. The system cannot find the file specified."
My nuget.engine is at 3.6.1
Should I roll back to previous versions?
Regards,
Niki
Add code analysis tool
To improve code quality we need to use Code coverage tool
Add support for CouchDb from .js controller to read the data
Question on Changing Report Name:
I have successfully implemented GHP Reporter in my project but I seem the report name and project names do not update even after changing them on the json files.
I have updated the names on both the below files
Ghpr.Core.Settings.json
Ghpr.SpecFlow.Settings.json
Can you please let me know if I am doing it in the right way?
I see that there was an issue #76 closed after fix on version 0.9.3 but I am currently using 0.9.4 and I still have the issue.
Describe the bug
When tried to modifying the settings of the report (testsToDisplay,runsToDisplay) in Ghpr.SpecFlow.Settings.json, the changes do not get reflected in the report.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The report needs to be updated with the changes made in the json files in the corresponding fields.
Screenshots
Attaching screenshots of the report and json files
Please find that the runsToDisplay and testsToDisplay fields have values as 4 and project name is Project 1 in the json files but the report has 5 runs displayed and the project name is not updated as well.
I can see that the changes gets reflected the very first time i change settings but I am unable to change it further for any number of times.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Would be great to have an option to browse through test without quitting to run view. Curently prev/next buttons navigates through runs on same test.
New buttons should follow some filters (e.g. if I filter out failed tests, I would like to browse through them to identify some root cause).
When loading takes some time and you change filters during progress, unloaded tests are not affected by these changes.
To reproduce, have results loading for 2s+, refresh page and hit e.g. passed button, already loaded results are hidden, newly loaded passed records are still displayed.
Expected result is that loading should check filter status and affect visibility of results.
Two indicators appear now.
Is there a chance this project will be ported to Dotnet Core 2.0 ?
Add links to actual run when clicking on runs chart.
Describe the bug
A clear and concise description of what the bug is.
I downloaded the latest version of Ghpr.Core.
Open the Ghpr.Core.sln and click the "Build" button. It has one build error.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5165,5): error MSB3073: The command "if Debug == Debug (xcopy "C:\git\Ghpr.Core\Ghpr.Controller.ts\bin\report*.*" "C:_GHPReporter_NUnit_Report" /r /y /e)" exited with code 2.
Could you help to give some comments for this issue?
BTW, I could click the Test Explorer of Ghpr.Core and the test cases can be executed successfully if I clicked Yes in the popped out warning dialog for build failure.
There is no test result content in the index.html of C:_GHPReporter_Core_Report
(My Environment is VS2017)
The oldest one loading for any run page
Hello!
I have already created test result. How i can run GHPR without using NUnit addins?
Set up Azure Pipelines
Will help to load test information faster
CodeFactor found multiple issues:
appveyor.yml:4
appveyor.yml:10
appveyor.yml:14
appveyor.yml:26
appveyor.yml:31
appveyor.yml:35
appveyor.yml:42
appveyor.yml:46
appveyor.yml:58
appveyor.yml:67
appveyor.yml:74
appveyor.yml:78
appveyor.yml:90
appveyor.yml:95
appveyor.yml:99
appveyor.yml:106
appveyor.yml:110
appveyor.yml:122
appveyor.yml:127
appveyor.yml:143
Hello,
When I update Ghpr.Core from 0.4.6.0 to 0.4.6.5 and I try to find browse my "installed" packages from visual studio, I got the following error:
Item has already been added. Key in dictionary: 'lib/net452/Ghpr.Core.dll' Key being added: 'lib/net452/Ghpr.Core.dll'
This does not happen with the 0.4.6.0 version.
Any idea why is that?
Regards.
Charts now takes 2/3 of space, mostly breaking relevant info.
In test detail view, main information message often contains exception which is formatted in way that it's almost unreadable.
In main view, width of runs history chart prevents from adding more columns as more than 50 runs causes text collisions (without zooming). E.g.
So, extending this chart to 100% width should help displaying more data.
Describe the bug
One day, I cannot say why, our runs.json happened to be empty.
Then running any suite generates exception file for each test to be stored. So, you can imagine that with bigger suite, it generates a lot of garbage.
I've now finished deleting 1 500 000 files.
To Reproduce
empty runs.json file
run tests in same suite
Expected behavior
append exceptions per run or limit number of exception files and rotate
handle empty runs.json file properly as not existing
Additional context
Exception file:
9. 1. 2019 4:13:49: Exception in method 'b__0'
Message:
Object reference not set to an instance of an object.
Source:
Ghpr.Core
StackTrace:
at Ghpr.Core.Helpers.ItemInfoHelper.SaveItemInfo(String path, String filename, ItemInfo itemInfo, Boolean removeExisting) in Ghpr.Core\Helpers\ItemInfoHelper.cs:line 34
at Ghpr.Core.Helpers.RunsHelper.SaveCurrentRunInfo(String path, ItemInfo runInfo) in Ghpr.Core\Helpers\RunsHelper.cs:line 10
at Ghpr.Core.Reporter.<>c__DisplayClass27_0.b__0() in Ghpr.Core\Reporter.cs:line 93
at Ghpr.Core.Helpers.ActionHelper.Simple(Action a) in Ghpr.Core\Helpers\ActionHelper.cs:line 26
Add new tab on Runs page to see tests durations for the test run
Is it possible to run this from TeamCity? Would we have to put the required dlls and json files in each build agents nunit folder? Also is it possible to put in dynamic and/or relative values in the settings.json file? I would like the output path to be relative to where the TestResults.xml file is being generated. Please let me know if any of this is possible on how to do this. Thanks in advance!
Hello.
Here is my issue description:
Could you please help me with trouble with Ghpr.NUnit that I want to use in two projects.
I have added such NuGet package to my projects and also make all configurations according manual (https://github.com/GHPReporter/Ghpr.NUnit).
When I run tests from my 1st project - everythink is ok.
When run tests from 2nd project - all results are going to directory that was configured for 1st project (I want that each project have it own result directory).
I think this is because i have two different links to Ghpr.NUnit.dll in nunit.bundle.addins and nunit-console gets only first one.
So, my question, how to configure nUnit and Ghpr.NUnit to write Ghpr Reports to different directories.
I got such answer from you earlier:
By default Ghpr.Core takes the configuration from the file in the directory where the dll itself is located.
You can try to use two different commands to run your tests from to projects. Something like a .bat file or a powershell script to change the target location of the report (by changing .json config file).
Another option is that I can implement new config which will give you the ability to use destination folder per project.
Something like:
"outputPaths": [
{"projectName": "MyProject1", "outputPath": "C:\_GHPReporter_NUnit_Report\Project1"},
{"projectName": "MyProject2", "outputPath": "C:\_GHPReporter_NUnit_Report\Project2"}
]
It would be great to have one configuration file for few projects, so please pay attention to this and implement as much as possible.
Start using cache to speed up html pages
Hi, we are using the reporting in our team. We run the tests on a nightly basis with Jenkins using Nunit runner. The runs pass and i see the report generated on the Jenkins slave where i execute it.
In order to display the report in Jenkins i am using HTML Plugin to which i point the report folder and the html file to be displayed. However the report looks empty in Jenkins:
Can you advice if there is a solution of the problem.
Hi,
I'm trying to run nunit with ghpreporter. But failed to run the console runner.
Could not load file or assembly 'nunit.engine, Version=3.7.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb' or one of its dependencies. The system cannot find the file specified.
NUnit console version - 3.8.0
GHreport - 0.8.0.2
Regards,
George
Hi there,
is there any possibility to add a route so that I can display the latest test run? Something like ...runs/latest
Thanks!
Peter
Hi,
Iโm a software developer from France.
Your report seems to be very cool, and I would like to use it in my project.
I have an issue with the nugget package.
When I try to add the nugget package to my project I have the following message :
Could not install package 'Ghpr.Core 0.1.4.2'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Please, could you help me ?
And do you have some documentations or tutorials about GHPReporter please ?
Thank you.
Yannick
I know it is possible to determine how many runs are displayed in the report html. Is it also possible to determine how many is kept in general?
I will be having many runs and over time the logs will grow massive, which I would like to avoid. I would like to be able to set a limit based on either a number of runs or time to completely delete all older logs. I haven't been able to find such possibility. Is there one? If not, would it be possible to have such feature implemented?
Thanks in advance!
Hi,
I would like to use Ghpr.Core and Ghpr.NUnit in a .NET 4.0 project but the nuget package is only available for 4.5.
I tried to change the target framework to 4.0 and was able to build it.
Do you think that's possible to lower the target framework?
Otherwise I can create a pull request to target both frameworks. (https://shazwazza.com/post/multi-targeting-a-single-net-project-to-build-for-different-framework-versions/)
Thanks a lot for this great library!
Original issue:
GHPReporter/Ghpr.NUnit.Examples#1
The report should display test files attached to testcontext.
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.