question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Simplify locating of addins

See original GitHub issue

Currently there is only one way how user is able to say where nunit-console should find extensions. This is via *.addins file. What if user will be able to install extension via nuget into tests project and that’s all what is required from user.

I propose to extend nunit-console and try to search extensions in the directory where user’s tests dll is located. It would be default behavior.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:29 (26 by maintainers)

github_iconTop GitHub Comments

1reaction
CharliePoolecommented, Oct 20, 2018

The search for extensions starts in a root directory, which is the directory containing the engine itself. The idea was that this might be expanded to search in other directories as well, using exactly the same search pattern. One possibility is a common directory used by all engine extensions. Another is some directory specific to the test project being loaded.

However, if you are loading multiple assemblies, there is still only one engine with extensions (i.e. the primary engine) It would take a fair bit of effort, I think, to load an extension only for one assembly, possibly a full restructuring of how we load assemblies. For that reason I agree with an approach where the user simply tells the user where to look for extensions. The command-line makes sense for this purpose. All the console would need to do would be to add the new setting to the TestPackage and the engine should do the rest.

1reaction
nvborisenkocommented, Oct 18, 2018

Imaging nunit-console came from unknown location, for instance it’s pre-installed on build machine (appveyour, etc).

And I do

nunit3-console /full/path/to/my/tests.dll

Actually I don’t know where exe is located, hence I cannot use *.addins file.

Generally if you explore some example of the extension https://github.com/reportportal/agent-net-nunit/blob/master/README.md, you might see that the hardest part of the installation is to say nunit-console how to find the extension.

This issue is about the following case:

  1. User developed tests
  2. Installed extension via nuget, built/publish project
  3. Copied all artifacts to some another machine
  4. Executed tests
Read more comments on GitHub >

github_iconTop Results From Across the Web

Get an Office Add-in for Outlook
Open Outlook. Depending on your Outlook version, select Home > Get Add-ins or from the ribbon Home > All Apps > Add apps....
Read more >
Manage add-ins—ArcGIS Pro | Documentation
Browse to the folder location of an add-in file (*.esriAddInX) on your computer or a network drive. Double-click the file to open the...
Read more >
Sideload Outlook add-ins for testing - Office Add-ins
In the Add-Ins for Outlook dialog box, select My add-ins. Locate the Custom add-ins section at the bottom of the dialog box.
Read more >
Solved: Custom Addin location - Inventor
Solved: Is there a way to change Addin location? Currently it is C:\ProgramData\Autodesk\Inventor Addins\. Up to this point we have synced ...
Read more >
Excel Add-in Ribbon Disappears After Installation
Open the Trusted Locations menu. · Press the Add new location… · Click the Browse… · Navigate to the folder that contains your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found