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

How to configure #23

Open
mathis7875 opened this issue Jul 3, 2019 · 6 comments
Open

How to configure #23

mathis7875 opened this issue Jul 3, 2019 · 6 comments
Assignees
Labels

Comments

@mathis7875
Copy link

Hello I have read all the of the documentation on the Read me. How ever I have not been able to generate reports.

  • I using Mstesrt
  • VS 2015
    -Installed the nugect ghpr core and etc
    -added the config to the bin folder with the ghpr console application
    -Im using default settings and change the "till" date so files dont get deleted
    Then I un my test fromthe mstest adaptor and afer run I do not get any results .

Im I missing a condiguration
mtest.json file
{ "default": { "outputPath": "C:\\_GHPReporter_MSTest_Report", "dataServiceFile": "Ghpr.LocalFileSystem.dll", "loggerFile": "", "sprint": "", "reportName": "GHP Report", "projectName": "PhoenixAutomationTests", "runName": "", "runGuid": "", "realTimeGeneration": "True", "runsToDisplay": "5", "testsToDisplay": "5", "retention": { "amount": 1000, "till": "2029-01-25 10:00:00" } }, "projects": [ { "pattern": "*CoolTests.dll", "settings": { "outputPath": "C:\\_GHPReporter_MSTest_Report\\CoolTests" } }, { "pattern": "*AwesomeTests.dll", "settings": { "outputPath": "C:\\_GHPReporter_MSTest_Report\\AwesomeTests" } } ] }

@elv1s42 elv1s42 self-assigned this Jul 4, 2019
@elv1s42
Copy link
Member

elv1s42 commented Jul 4, 2019

Hi @mathis7875 !

As far as I can see, you are using retention settings with till = 2029-01-25 10:00:00.
But in the documentation you can see that "all runs with finish date older than this value will be deleted".
So I can assume that your report is deleted right after is was created. Please try using something like till = 2009-01-25 10:00:00.

Thank you

@mathis7875
Copy link
Author

Thank you @elv1s42 i will give that a go.

@mathis7875
Copy link
Author

@elv1s42 , I updatedthe till time to the suggested time. However afte running a test I still do not see the report.

Tech stack : Selenium/C#/ mstest
Nuget packt installs 👍
image

The default output path is :
C:\_GHPReporter_MSTest_Report
image

I double checked the settings and I dont see an other items to configure.

@elv1s42
Copy link
Member

elv1s42 commented Jul 5, 2019

Hi @mathis7875 !

Sorry, I didn't know you are using Selenium too. In this case you have a couple of possible options.

  1. You can use Ghpr.Console to generate the report from the test results file (it may be produced by vstest.console.exe, here is an example of documentation: https://docs.microsoft.com/en-us/previous-versions/jj155796(v=vs.140)#example ). After you have the .trx file, you can generate the report using Ghpr.Console.exe (usage details are here: https://github.com/GHPReporter/Ghpr.Console#usage)

  2. The second option is to use extension points provided by SpecFlow itself. There are another related packages: https://github.com/GHPReporter/Ghpr.SpecFlow#usage
    Please be aware that SpecFlow 3 is not supported at the moment, there is a separate issue that should be released soon.

Thank you

@mathis7875
Copy link
Author

@elv1s42 , Hello and happy holidays, also thanks for your help .

So I configured everything and is running from console :

c:\Projects\2019UpdatePhoenixAutomation\PhoenixAutomationTests\bin\Debug>ghpr.Co
nsole.exe "C:\Program Files (x86)\Microsoft Visual Studio 14.0\TestResults\myoun
g_SWR-LAP125 2019-07-05 15_06_36.trx"

nothing happens , I do not see any file generated . Any other ideas

@elv1s42
Copy link
Member

elv1s42 commented Jul 8, 2019

Hi @mathis7875 , not sure why this is happening.
Can you please try to update the packages to the latest version?
On the screenshot you've attached I can see that two packages can be updated: Ghpr.Core and Ghpr.LocalFileSystem

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