Git Product home page Git Product logo

ghpr.core's People

Contributors

betrisey avatar code-factor avatar dependabot-preview[bot] avatar dependabot-support avatar elv1s42 avatar jmemmons avatar mend-bolt-for-github[bot] avatar nunomdc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ghpr.core's Issues

Getting could not load Ghpr.Core assembly error while running nunit3-console

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:

  1. Running nunit3-console.exe "My.dll" from this location {My}\packages\NUnit.ConsoleRunner.3.10.0\tools\ gives me this error.

Here is how my packages.config file looks like:
image

Expected behavior
The command should execute and my tests should be run. It is a VS2017 unit test project containing 2 simple Selenium tests.

Screenshots
image

Desktop (please complete the following information):

  • Browser: Chrome 75.something
  • Ghpr packages versions : Ghpr.Core v0.9.9.1, Ghpr.NUnit v0.9.9.1

New to GHPReporter

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 Categories Management

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.
obrazek

Another suggestion is to add option to disable displaying empty categories (after filtering some tests out), e.g.
obrazek
Should become
obrazek

Would be great if both options could become default for user, so storing these options to cookies would be great.

Configurable count of test runs

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

Time chart: filter runs and test runs by date

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.

[Feature] Report name

Make report name configurable, probably the value should be taken from report's .json settings

Put Core version number somewhere on the report page

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.

Combine 2 TestResult.xml

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

dynamic output path

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

Escape test message

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

Ghpr to support new version of NUnit

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

Code coverage

To improve code quality we need to use Code coverage tool

Update Report and Project Name

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.

Reopening #104 - Update Report and Project Name

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:

  1. I have updated the Ghpr.SpecFlow.Settings.json file with customised changes for the report.
  2. I have updated the properties for the json as copy always
  3. Updated changes across both the json files with the same settings. (Ghpr.Core.Settings and Ghpr.SpecFlow.Settings )

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.
image
image

Desktop (please complete the following information):

  • Browser [e.g. firefox]
  • Ghpr packages versions
    image

Additional context
Add any other context about the problem here.

[Feature] Possibility to display next/prev test in current run

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).

Filters don't affect newly loaded tests

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.

Compilation failure

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)

Ghpr.Core error after package update

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.

Move charts above/below other info

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.
obrazek
So, extending this chart to 100% width should help displaying more data.

Better exception handling

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

Dynamic properties in json file? Run from Team City

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!

[Feature] Ghpr configuration file for few projects

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.

Report in Jenkins is broken.

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:
image
Can you advice if there is a solution of the problem.

Could not load file or assembly 'nunit.engine, Version=3.7.0.0

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

Latest test run

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

Nugget package

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

Old test results should have an ability to be discarded/deleted

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.