How to use ITestEventListener in Nunit 3 in Visual Studio 2017

420 views Asked by At

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?

1

There are 1 answers

5
Chris On BEST ANSWER

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