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.
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.