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
Blank report is generated #16
Comments
Hi @mcopjan ! By the way, are you following this short (https://github.com/GHPReporter/Ghpr.NUnit#view-report-locally) instruction about viewing report locally? |
Hi @elv1s42 , thanks for your quick response! To be honest I have tried to open the report in Chrome and IE and ignored that note about Firefox (as I did not have it installed don my PC). When I tried to open the report in Firefox with described settings, all seem to be good. |
Yeah, I will provide some steps after the next release, it will be tomorrow I think. Another way is to use local server, where you can put the report. In any case I will let you know when new release is available. |
Thank you @elv1s42 I do like this reporting tool. Well done! |
Hi @mcopjan ! Also new version is released, v 0.4.5, I would suggest you using this new version. |
@mcopjan please note, that if you will run tests and generate report into the folder where report already exists, you will need to delete all three index.html files and ghpr.controller.js file before test run (they will appear again during test run). |
Hi @elv1s42, I tried to open a freshly generated report in Chrome with the parameter you suggested but the report still appears. All good in Firefox. Have you managed to display the report in Chrome? |
Hello @mcopjan ! |
@mcopjan, The best way to open a report in Chrome is to deploy it on the site (not as a local file) |
@elv1s42 I have closed all instances of Chrome and no chrome processes are running, yet the report is opened as blank >_> C:\Program Files (x86)\Google\Chrome\Application>.\chrome.exe --allow-file-access-from-files file:///C:/_GHPReporter_NUnit_Report4/index.html @cold-flame thanks, it is definitely way to go in future but at the moment people would use GHPR locally, meaning they would have to deploy report html to local IIS which is overkill when all you want to do is just display an html file... |
Hi @mcopjan ! Please try the following steps: |
@elv1s42 thanks man, i have done literally the same steps before with no effect then I checked version of my Chrome and noticed it is not the most up to date version. I am on version 57.0.2987.133 now and all good! |
Good, I've added link to my comment in README file (just in case anyone will need it in the future). @mcopjan, thanks for confirmation that provided solution worked for you. |
Hi @elv1s42 As to opening the report, I would recommend running a small http server locally, as per this response, running the server from where the report was generated. Cheers.. |
I have installed Nunit Console Runner 3.6.0 and set up with libraries as described:
Then run my TestProject_Ghpr.dll containing a test.
Console output window:
c:\Program Files (x86)\NUnit.org\nunit-console>nunit3-console.exe "c:\Users\MartinCo.MGSOPS\Documents\Visual Studio 2015\Projects\TestProject_Ghpr\TestProject_Ghpr\bin\Debug\TestProject_Ghpr.dll"
NUnit Console Runner 3.6.0
Copyright (C) 2017 Charlie Poole
Runtime Environment
OS Version: Microsoft Windows NT 10.0.10586.0
CLR Version: 4.0.30319.42000
Test Files
c:\Users\MartinCo.MGSOPS\Documents\Visual Studio 2015\Projects\TestProject_Ghpr\TestProject_Ghpr\bin\Debug\TestProject_Ghpr.dll
=> TestProject_Ghpr.Class1.Test1
Inside test
Run Settings
DisposeRunners: True
WorkDirectory: c:\Program Files (x86)\NUnit.org\nunit-console
ImageRuntimeVersion: 4.0.30319
ImageTargetFrameworkName: .NETFramework,Version=v4.5.2
ImageRequiresX86: False
ImageRequiresDefaultAppDomainAssemblyResolver: False
NumberOfTestWorkers: 4
Test Run Summary
Overall result: Passed
Test Count: 1, Passed: 1, Failed: 0, Warnings: 0, Inconclusive: 0, Skipped: 0
Start time: 2017-02-21 13:37:58Z
End time: 2017-02-21 13:38:00Z
Duration: 2.398 seconds
Results (nunit3) saved as TestResult.xml
Report is created at the location from Ghpr.NUnit.Settings.json (c:_GHPReporter_NUnit_Report\index.html) but when you open the report it is blank. Am I missing something?
I am attaching report in zip file.
https://1drv.ms/u/s!AldGQH625sV0mQp2tsSaHkVDj1zi
The text was updated successfully, but these errors were encountered: