Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghpr.Console produces empty report #43

Closed
UyttenhoveSimon opened this issue Sep 4, 2019 · 5 comments
Closed

Ghpr.Console produces empty report #43

UyttenhoveSimon opened this issue Sep 4, 2019 · 5 comments
Assignees
Labels

Comments

@UyttenhoveSimon
Copy link

UyttenhoveSimon commented Sep 4, 2019

Hello,

Bug:
While trying Ghpr.Console on Ghpr.Examples, it produced an empty report.
image

How to reproduce:

  1. Installed all the latest required packages from GHPR (Core (0.9.9.1), Nunit (0.9.9.1), NUnitTests (1.0.0.0), Console (0.9.9.1)).
  2. Installed inside the addin of NUnit Console: addins/../../../Users/suyttenhove/Documents/TestGHPR/Ghpr.NUnit.Examples/bin/x86/Debug/Ghpr.NUnit.dll
  3. I started from Ghpr.NunitExamples.
  4. Did the tests and produced the .xml with NUnit Console within Ghpr.NUnit.Examples\Ghpr.NUnitExamples\bin\x86\Debug\ .

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

Thanks,
Simon

@elv1s42 elv1s42 self-assigned this Sep 10, 2019
@elv1s42
Copy link
Member

elv1s42 commented Sep 10, 2019

Hi @UyttenhoveSimon !

Sorry for the late response.

Can you please check if you are following the view report locally section ?
https://github.com/GHPReporter/Ghpr.Core#view-report-locally

Thank you

@UyttenhoveSimon
Copy link
Author

UyttenhoveSimon commented Sep 12, 2019

Thanks for your reply.
I am able to open the html file locally, the problem is that it is completely empty.

Why when I run the NUnit (with the addin) on the DLL from GHPR, the index.html produced in C:_GHPReporter_NUnit_Reporter is empty?

When I go inside "runs", I see 4 runs:
image

But this other index.html is also empty inside?

@elv1s42
Copy link
Member

elv1s42 commented Sep 16, 2019

Hi @UyttenhoveSimon ,

The index.html file is empty and that's correct. The data for this file should be picked up by .js library, so you need to enable javascript for local files.
You can check the details for firefox and chrome. Also you can check the Console of your browser to make sure there are no errors.

Thank you.

@UyttenhoveSimon
Copy link
Author

Good news, it is working now.
Closing the browser and opening it again with the flags worked.
Maybe mention this behavior in the doc?

Thanks for your responses.

@elv1s42
Copy link
Member

elv1s42 commented Sep 17, 2019

@UyttenhoveSimon thank you for the feedback, I've updated corresponding section in the README file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants