1

The steps I have taken:

  1. I have created a separate project for the ITestEventListener
  2. Installed Nunit.Engine.Api v3.9.0 for the new project
  3. The class A that implements ITestEventListener has the [ExtensionAttribute]
  4. The project that contains class A at root also has .addins file which contains *dll line (to reference all dlls in its directory)
  5. The test project contains a reference to the project that has class A that implements ITestEventListener.

When I try to run a test, nothing happens. Solution Explorer keeps loading indefinitely.

I have not been able to find any step by step instructions for configuring this.

I had followed the official nunit docs

as well as this question without success.

I am trying to run my tests with Visual Studio 2017 no the console runner

Any suggestions or pointers? What am I missing?

O.MeeKoh
  • 1,976
  • 3
  • 24
  • 53

1 Answers1

1

I don't believe the NUnit 3 Adapter currently loads Extensions. They should work with the Console Runner however.

See the open issue here: https://github.com/nunit/nunit3-vs-adapter/issues/222

Chris
  • 5,882
  • 2
  • 32
  • 57
  • Im going to try to manually copy over the files. I just wanted to clarify what goes in the .addins file i create for the new project that I created containing ITestEventListener, is it the path to the dll that contains my class that implements the ItestEventListener or something else? It wasn't very clear to me – O.MeeKoh Oct 04 '18 at 15:49
  • Yes, that's correct. See one of the default versions, here: https://github.com/nunit/nunit-console/blob/master/msi/resources/nunit.bundle.addins – Chris Oct 04 '18 at 16:11
  • Awesome thanks. Looks like manual copy and paste is not a solution. It is not supported with the Test Adapter. – O.MeeKoh Oct 04 '18 at 16:29
  • Unfortunately not. Would be a nice little Pull Request if you were interested, though! ;-) – Chris Oct 04 '18 at 16:34
  • Well. "Little" might not be the best choice of word here! – Chris Oct 04 '18 at 16:35