Questions tagged [nunit-addins]

9 questions
10
votes
2 answers

Test Driven .NET won't use NUnit addins

I am experiencing a problem with running NUnit via the Test Driven .NET plugin with Visual Studio 2008. I have an addin that when I use the NUnit GUI, works just fine. However, the addin doesn't seem to work when run NUnit through TDD.NET. I've…
Delmania
  • 812
  • 10
  • 20
10
votes
3 answers

How can I create a MethodInfo from an Action delegate

I am trying to develop an NUnit addin that dynamically adds test methods to a suite from an object that contains a list of Action delegates. The problem is that NUnit appears to be leaning heavily on reflection to get the job done. Consequently,…
Michael Meadows
  • 27,796
  • 4
  • 47
  • 63
4
votes
1 answer

Examples of a working ITestCaseProvider implementation for NUnit?

Does anyone have any working examples of an ITestCaseProvider? The samples I've come across, don't get picked up by the any test runnings - GUI, Console or Resharper (I've put the assembly in all the right places). I've added Debugger.Break to them…
Kieron
  • 26,748
  • 16
  • 78
  • 122
2
votes
1 answer

NUnit addins not loading

I am trying to load some addins to the NUnit Gui Runner, however it doesn't identify any addin at all even that they are all inside the addins directory. I even compiled their examples and tried to load them but still nothing. Am I missing something…
the_drow
  • 18,571
  • 25
  • 126
  • 193
2
votes
1 answer

Using NUnit EventListeners Addin with ReSharper 7

I've defined an Addin for NUnit (2.6.0) like so namespace company.Testing.Attributes { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] public class ThenWithSetupAttribute : TestAttribute …
Andreas
  • 5,501
  • 2
  • 20
  • 23
1
vote
1 answer

How to use ITestEventListener in Nunit 3 in Visual Studio 2017

The steps I have taken: I have created a separate project for the ITestEventListener Installed Nunit.Engine.Api v3.9.0 for the new project The class A that implements ITestEventListener has the [ExtensionAttribute] The project that contains class A…
O.MeeKoh
  • 1,976
  • 3
  • 24
  • 53
1
vote
2 answers

How to write a NUnit test for an NUnit add-in?

I'm working on a variation of this stack overflow answer that provides reliable cleanup of tests. How do you write unit tests for NUnit addins? Examining how NUnit self tests, I have determined: You can write tests, that pass, that verify correct…
Precipitous
  • 5,253
  • 4
  • 28
  • 34
1
vote
2 answers

How do I invoke a MethodInfo that was created from an anonymous method?

In a previous question, I asked how to get a MethodInfo from an Action delegate. This Action delegate was created anonymously (from a Lambda). The problem I'm having now is that I can't invoke the MethodInfo, because it requires an object to which…
Michael Meadows
  • 27,796
  • 4
  • 47
  • 63
0
votes
1 answer

Using NUnit3 addins with VS Test Adapter

I created a very simple NUNit3 addin (see code below), but I'm not sure how to actually make it run when I kick off tests using the Visual Studio Test Adapter in VS2015. I've built it into an assembly, but I'm not sure where I need to reference…