GHPReporter / Ghpr.NUnit

Adapter for NUnit 3 (generate HTML report for NUnit 3)
http://ghpreporter.github.io/
MIT License
35 stars 14 forks source link

Unable to generate the Ghpr report #34

Closed sathishkumarmani-cesltd closed 6 years ago

sathishkumarmani-cesltd commented 6 years ago

Hi,

I have tried to implement Ghpr report and followed all the steps as mentioned in readme file....however I am not able to generate a report. Below are the steps which I have followed -> I couldn't find any folder with name addins, so i have created a new folder under ".nuget\packages\nunit.consolerunner\3.8.0\addins" and added all required dlls into it. -> There is no "nunit.engine.addins" file available, so manually created a file under ".nuget\packages\nunit.consolerunner\3.8.0\tools" and added the path as "../../addins/Ghpr.NUnit.dll"

Please find the dll's versions I have used: Nunit : 3.9.0 Newtonsoft.Json : 10.0.3 NUnit Console : 3.8.0 Ghpr.NUnit : 0.8.0.2

Could you please help me on resolving this issue

Regards, Sathish Kumar Mani

elv1s42 commented 6 years ago

Hi @sathishkumarmani-cesltd !

For using Ghpr.NUnit you need to install NUnit Console: https://github.com/nunit/nunit-console/releases

After that you will be able to see the addins folder: image

Thank you

sathishkumarmani-cesltd commented 6 years ago

@elv1s42 Thanks for the quick response :-). As I mentioned earlier I have installed NUnit console version 3.8.0 image

image

No dlls or folders under NUnit console folder (Screenshot of nunit.console\3.8.0)

image

Screenshot of NUnit.ConsoleRunner/3.8.0/tools

image

elv1s42 commented 6 years ago

Hi @sathishkumarmani-cesltd

The NUnit Console should be installed on your local machine via running .msi file, not via NuGet: image

image

Then you will be able to see the addins folder: image

Also I'll take a look on how to use addins with NuGet packages.

Thank you

sathishkumarmani-cesltd commented 6 years ago

Thanks for the detailed response.. I have installed nunit console and have tried to run the test from nunit console. Now I am getting another error as shown below:

image

However When I remove the addins/Ghpr.NUnit.dll from addins file, I am able to run the test..

Please help and let me know how to configure tests to view history of runs

sathishkumarmani-cesltd commented 6 years ago

Hi, I am able to generate the report after adding Nunit.engine dll in addins folder.. Thanks

elv1s42 commented 6 years ago

Hi @sathishkumarmani-cesltd , thank you very much for the update. I'll take a look at NuGet packages for Ghpr.NUnit as it looks like NUnit.Engine package should be updated

georgooty commented 6 years ago

Hi @sathishkumarmani-cesltd,

I'm also facing the same issue. I'm copied the Nunit.engine dll into addins folder. But the issue still exists. can you please let me know , if anything you did additionally?

Regards,George

sathishkumarmani-cesltd commented 6 years ago

Hi George, Could you please share the dlls and their versions and please share the screenshot as well to look into detail..

Thanks

georgooty commented 6 years ago

Ghpr.Core - 0.8.0.2 Ghpr.NUnit - 0.8.0.2 NUnit - [3.9.0] NUnit.ConsoleRunner - 3.8.0 nunitconsole

elv1s42 commented 6 years ago

Hi @sathishkumarmani-cesltd , hi @georgooty !

The new version is released now. The issue was with Ghpr.NUnit which was using the previous version of NUnit.Engine (v 3.7.0 instead of v 3.8.0).

Thank you

ManuelVelazquez commented 4 years ago

Hello, @elv1s42

I can not create the Ghpr report. Could anyone help me on this?

Please find the dll's versions I am using:

Nunit : 3.12 Newtonsoft.Json : 12.0.3.23909 NUnit Console : 3.11.1 Ghpr.NUnit : 0.9.10.0

This is how addins folder looks like: Capture

This is how nunit.bundle.addins file looks like: image

And this is how bin/debug folder looks like: image

I am running via console like this: nunit3-console.exe --labels=All --out=TestResult.txt "--result=TestResult.xml;format=nunit3" "C:\users\usuario\project,project.dll" image

The testResult.txt and TestResul.xml files are generated successfully, but can NOT see the Ghpr Report... Am I missing some step?

elv1s42 commented 4 years ago

Hi @ManuelVelazquez!

The first thing I'll suggest is to check the relative path inside your nunit.bundle.addins file. You can use --list-extensions command to make sure NUnit Console sees the Ghpr.NUnit extension: image

Thank you