Reputation: 141
A convenient way of running tests in parallel in nunit when in a dotnet framework project was to set this in the AssemblyInfo.cs file.
[assembly: Parallelizable(ParallelScope.Fixtures)]
however in .net core or .net standard, there is no longer an AssemblyInfo.cs file. So how can one set the scope to parallel in net core or net standard in just one place, without having to add that decorator on every single test class file?
Upvotes: 10
Views: 5000
Reputation: 3448
Create WhateverNameYouWant.cs file. Just put your code - NUnit will recognize it.
using NUnit.Framework;
[assembly: Parallelizable(ParallelScope.Fixtures)]
Upvotes: 13