Perazim Perazim - 8 months ago 103
C# Question

How to use test suite in NUnit 3

I'm using NUnit 3 and having problems using test suites. I saw this Documentation page, but it's for the old version and I can't find anything in the new documentation.

This does not work, because [Suite] is invalid.

public static IEnumerable Suite
ArrayList suite = new ArrayList();
return suite;


The SuiteAttribute has been removed from NUnit 3 (see the Attributes table).

You should instead use the expanded Test Selection Language in the command line runner to control the groups of tests you want to run, or alternatively structure your tests differently.