According to the documentation you can apply the NUnit timeout attribute to an assembly:
The attribute may also be specified on a fixture or assembly, in which case it indicates the default timeout for any subordinate test cases.
The challenge I am running into is that they give no indication of how to apply the attribute to an assembly on that page or anywhere else I can find in the documentations.
I tried using [SetupFixture]
and decorating that with the attribute but that did not seem to take. Has anyone had any success in making something like this work?
To apply the Timeout
attribute to an assembly, first add the directive using NUnit.Framework;
to the assembly's AssemblyInfo.cs
. Then add a line specifying the timeout:
[assembly: Timeout(1000)]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With