For edition purpose, especially when you’ve a test-suite with more than 100 tests, it’s sometimes useful to group tests. This can be achieved with the xml element named group. You can include a few tests in a group element. If you’re using an advanced IDE, such as Visual Studio, it will be possible to toggle off/on this group of tests when editing them. You can also create group elements under group elements and so on. The only attribute of this xml element group is named name and will let the editor specify a display name for the group.
This feature has absolutely no influence at runtime. Meaning, that this will not influence the way the tests are named or presented by NUnit.
The code snippet, here under, makes usage of several groups and groups under groups.
Note that if, at the same level, you’ve tests and groups then you must ensure that all the tests are located above the first group of this level. It means that if you’ve, at a given level, three tests and two groups, the three tests must appear above the two groups.