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

[Feature] Ghpr configuration file for few projects #107

Closed
DmitriyGrabinskiy opened this issue Apr 23, 2019 · 1 comment
Closed

[Feature] Ghpr configuration file for few projects #107

DmitriyGrabinskiy opened this issue Apr 23, 2019 · 1 comment
Assignees
Labels
Projects
Milestone

Comments

@DmitriyGrabinskiy
Copy link

Hello.

Here is my issue description:
Could you please help me with trouble with Ghpr.NUnit that I want to use in two projects.
I have added such NuGet package to my projects and also make all configurations according manual (https://github.com/GHPReporter/Ghpr.NUnit).
When I run tests from my 1st project - everythink is ok.
When run tests from 2nd project - all results are going to directory that was configured for 1st project (I want that each project have it own result directory).

I think this is because i have two different links to Ghpr.NUnit.dll in nunit.bundle.addins and nunit-console gets only first one.
So, my question, how to configure nUnit and Ghpr.NUnit to write Ghpr Reports to different directories.


I got such answer from you earlier:
By default Ghpr.Core takes the configuration from the file in the directory where the dll itself is located.

You can try to use two different commands to run your tests from to projects. Something like a .bat file or a powershell script to change the target location of the report (by changing .json config file).

Another option is that I can implement new config which will give you the ability to use destination folder per project.
Something like:
"outputPaths": [
{"projectName": "MyProject1", "outputPath": "C:\_GHPReporter_NUnit_Report\Project1"},
{"projectName": "MyProject2", "outputPath": "C:\_GHPReporter_NUnit_Report\Project2"}
]

It would be great to have one configuration file for few projects, so please pay attention to this and implement as much as possible.

@DmitriyGrabinskiy DmitriyGrabinskiy changed the title Ghpr configuration file for few projects [Feature] Ghpr configuration file for few projects Apr 23, 2019
@elv1s42
Copy link
Member

elv1s42 commented May 24, 2019

This is now implemented and released in v0.9.9.

Please see related information in readme file here: https://github.com/GHPReporter/Ghpr.Core#about-settings-file

@elv1s42 elv1s42 self-assigned this May 24, 2019
@elv1s42 elv1s42 added this to ToDo (Prioritised) in Ghpr Common via automation May 24, 2019
@elv1s42 elv1s42 moved this from ToDo (Prioritised) to InProgress (Dev/QA) in Ghpr Common May 24, 2019
@elv1s42 elv1s42 moved this from InProgress (Dev/QA) to Done (Aw. Release) in Ghpr Common May 24, 2019
@elv1s42 elv1s42 added this to the v0.9.9 milestone May 24, 2019
@elv1s42 elv1s42 moved this from Done (Aw. Release) to Released (NuGet package) in Ghpr Common Jul 8, 2019
@elv1s42 elv1s42 closed this as completed Jul 8, 2019
@elv1s42 elv1s42 moved this from Released (NuGet package) to Archive in Ghpr Common Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Ghpr Common
  
Archive
Development

No branches or pull requests

2 participants