Skip to content

Better message when timeout fails #2020

Closed
@jnm2

Description

@jnm2

Currently when a timeout fails NUnit reports, "Test cancelled by user." While in a certain sense it's not wrong, it's confusing. It led me to believe that I was clicking the test abort icon in ReSharper. (I've been having tooling issues unrelated to NUnit.) In an integration test, it makes it sound as though the build is being canceled.

It's also missing the most relevant information about the test failure: how long it was expected to take.

Ideally it would say "Timeout of 3000 ms exceeded" or something similar. This way, you instantly know what caused the cancellation (the timeout attribute) without guessing, and you know how long it took. This is in the same spirit as every assertion message.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions