-
Notifications
You must be signed in to change notification settings - Fork 724
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
Improved location of extensions #1749
Comments
@Chraneco you could restore NUnit using this command line |
@NikolayPianikov Thanks for your comment. At the point when we execute the unit tests we are completely outside of a Visual Studio project. The build artifacts contain only the necessary files and in a different directory structure. Restoring NuGet packages there is not possible and also not wanted. |
Is it possible to update the .addins file in the script where you make your own NUnit tool directory? |
All the files and directories are put in place by TeamCity itself via Artifact dependencies. |
@Chraneco Yes... we are discovering that the existing setup for locating extensions is not sufficient. The main problem is that extensions are looked for relative to the directory containing the engine. The paths in the Since we don't already have an issue on this general topic, I changed the title of this issue accordingly. Things we may consider:
|
Issue moved to nunit/nunit-console #4 via ZenHub |
Hi!
We recently updated to NUnit 3.4.1 which unfortunately broke the integration with TeamCity. After some research I found out that this is because the TeamCity integration was moved to a separate NuGet package.
In our build pipeline we copy the contents of
packages\NUnit.ConsoleRunner.3*\tools
as part of a build artifact to a separate location, leaving behind the contents of all other packages (includingNUnit.Extension.TeamCityEventListener.*
).I was hoping that it was enough to copy the "teamcity-event-listener" DLL into the folder next to "nunit3-console.exe", but it didn't help. That is because the NUnit engine only looks at the following hard-coded directories for extensions (listed in the
nunit.engine.addins
file):Unfortunately, this directory structure does not exist where we run our tests.
Making the following adjustment solves the problem for us
because we now copy the DLL into the directory where the console runner is put but we don't want to make this change every time we update NUnit. Is there a more generic solution for this? For example, letting the console runner always search in its own location for extension DLLs would be a possibility.
The text was updated successfully, but these errors were encountered: