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

Broken Extensions discovery when installed with Chocolatey #1614

Closed
Tracked by #1549
mazharenko opened this issue Jan 29, 2025 · 1 comment
Closed
Tracked by #1549

Broken Extensions discovery when installed with Chocolatey #1614

mazharenko opened this issue Jan 29, 2025 · 1 comment
Assignees
Labels
Bug Critical Critical Priority, i.e. requires an immediate hot fix.
Milestone

Comments

@mazharenko
Copy link
Contributor

NUnit engine seems to always discover extensions as if installed with nuget.

Find the minimal reproducible example in chocolib.zip. It contains nunit-console-runner and nunit-extension-teamcity-event-listener just as they are after installation via choco.

> nunit3-console.exe --list-extensions 
NUnit Console Runner 3.19.1 (Release)
Copyright (c) 2022 Charlie Poole, Rob Prouse
Wednesday, January 29, 2025 4:43:05 PM

Runtime Environment
   OS Version: Microsoft Windows NT 6.2.9200.0
   Runtime: .NET Framework CLR v4.0.30319.42000

Installed Extensions
  Extension Point: /NUnit/Engine/NUnitV2Driver
  Extension Point: /NUnit/Engine/TypeExtensions/IService
  Extension Point: /NUnit/Engine/TypeExtensions/ITestEventListener
  Extension Point: /NUnit/Engine/TypeExtensions/IDriverFactory
  Extension Point: /NUnit/Engine/TypeExtensions/IProjectLoader
  Extension Point: /NUnit/Engine/TypeExtensions/IResultWriter

But when I rename the folder with the Teamcity listener to nunit.extension.teamcity-event-listener (workaround.zip), it starts working:

> nunit3-console.exe --list-extensions
NUnit Console Runner 3.19.1 (Release)
Copyright (c) 2022 Charlie Poole, Rob Prouse
Wednesday, January 29, 2025 4:45:33 PM

Runtime Environment
   OS Version: Microsoft Windows NT 6.2.9200.0
   Runtime: .NET Framework CLR v4.0.30319.42000

Installed Extensions
  Extension Point: /NUnit/Engine/NUnitV2Driver
  Extension Point: /NUnit/Engine/TypeExtensions/IService
  Extension Point: /NUnit/Engine/TypeExtensions/ITestEventListener
    Extension: NUnit.Engine.Listeners.TeamCityEventListener(.NET 2.0) (Disabled)
      Version: 1.0.7.0
      Path: C:\Workspace\scratching\tmp\workaround\nunit.extension.teamcity-event-listener\tools\teamcity-event-listener.dll
  Extension Point: /NUnit/Engine/TypeExtensions/IDriverFactory
  Extension Point: /NUnit/Engine/TypeExtensions/IProjectLoader
  Extension Point: /NUnit/Engine/TypeExtensions/IResultWriter

OS: Windows
Method of installation: Chocolatey
Version: 3.19.1

@CharliePoole
Copy link
Member

This issue has been resolved in version 3.19.2

The release is available on:
GitHub.
NuGet packages are also available NuGet.org and
Chocolatey Packages may be found at Chocolatey.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Critical Critical Priority, i.e. requires an immediate hot fix.
Projects
None yet
Development

No branches or pull requests

2 participants