GHPReporter/Ghpr.Core

dynamic output path

dddkiran opened this issue · 3 comments

Hey!

We have one diagnostics project for monitoring different products(web1/web2..) in different environments (qa/test/beta).

Is it possible to pass Ghpr.NUnit.Settings.json or output path dynamically though nunit parameters ?

Cherrs,
Kiran

Hi @dddkiran,
I had a similar idea more than a year ago and raised an issue in NUnit repository:
nunit/nunit-console#148

The idea was to be able to pass Ghpr settings via NUnit Console command line arguments.

The issue is not resolved at the moment, so I can suggest using some workaround like for example running .ps1 script (which will change .json settings file) as a separate step of your CI process before executing tests.

Closing for now as there is no way to extract arguments from NUnit Console arguments at the moment, and there is a workaround like for example running .ps1 script (which will change .json settings file) as a separate step of your CI process before executing tests.

Hi @dddkiran ,

Ghpr.Core now supports mulitple project settings in one config file: https://github.com/GHPReporter/Ghpr.Core#about-settings-file

Thank you