xUnit.net how can I specify a timeout how long a test should maximum need

codefruit picture codefruit · Nov 29, 2013 · Viewed 8.3k times · Source

I have integration tests set up with xUnit.net.

Is there a way to configure how long an integration test should last maximum? I mean a threshold.

Answer

bbohac picture bbohac · Nov 29, 2013

It seems, what you are looking for is the Timeout parameter of the Fact attribute.

For further information see the XUnit Docs under Ensuring a Test Does Not Run Too Long.