You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
First of all I'd like to say thank you for your project!
Unfortunately, I failed to integrate GHPReporter into my project (.Net Core Nunit test project). I didn't receive a generated file.
To Reproduce
Steps to reproduce the behavior:
Added the entry below into 'C:\Users\windows_username.nuget\packages\nunit.consolerunner\3.11.1\tools\nunit.console.nuget.addins':
'addins/../../../Users/windows_username/.nuget/packages/ghpr.nunit/0.9.10/lib/netstandard2.0/Ghpr.NUnit.dll'
Copied 'Ghpr.NUnit.Settings.json' file from 'C:\Users\windows_username.nuget\packages\ghpr.nunit\0.9.10\content' to the root of my project
Checked that 'bin\Debug\netcoreapp3.1' folder contains Ghpr.Core.dll, Ghpr.NUnit.dll, Ghpr.LocalFileSystem.dll, Ghpr.NUnit.Settings.json and Newtonsoft.Json.dll
Run my tests by cmd: 'dotnet test -l trx -r report'
Expected behavior
A HTML report should be generated. I checked the root of C drive, project root folder, 'bin', 'obj' folders.
Hi @zubr7 ,
Thank you for the issue and sorry for the late response.
The issue we are having here is that NUnit works a little bit different when running .NET Core tests, see the corresponding issue here: nunit/nunit-console#487
So I had to create a new issue here: #57
The idea is that we need a new NuGet package which will be detected automatically by NUnit when running .NET Core tests.
For now, I think it may be possible to use Ghpr.Console package to generate the report from the .xml file with test results.
Make sure to include Ghpr.NUnit.Settings.json and Ghpr.NUnit.addins files into your project (and mark them with Copy always attribute). You can find both files in the corresponding NuGet folder of the Ghpr.NUnit package (starting from v0.9.11):
Run your tests using dotnet test command:
See the report generated:
Please feel free to reopen this issue or raise a new one in case there is something wrong with how the package works for .NET Core tests.
Describe the bug
First of all I'd like to say thank you for your project!
Unfortunately, I failed to integrate GHPReporter into my project (.Net Core Nunit test project). I didn't receive a generated file.
To Reproduce
Steps to reproduce the behavior:
'addins/../../../Users/windows_username/.nuget/packages/ghpr.nunit/0.9.10/lib/netstandard2.0/Ghpr.NUnit.dll'
Expected behavior
A HTML report should be generated. I checked the root of C drive, project root folder, 'bin', 'obj' folders.
Screenshots
Versions
.Net Core 3.1
GHPReporter 0.9.10,
Nunit 3.12.0,
Nunit.ColsoleRunner 3.11.1,
The text was updated successfully, but these errors were encountered: