Skip to content

Adding a Custom Test timeoutΒΆ

Did you know?

When writing tests in Flutter, you can add a custom timeout argument.

This is very useful for tests that can potentially hang (when waiting on an asynchronous stream matcher). πŸ‘‡

If you have many tests running on CI, this can save you a lot of time and money! πŸ’°


You know what else is cool?

Custom timeouts can be configured per-file, per-test, or per-group, just like this. πŸ‘‡

Previous Next
Golden Image Testing with Robot Testing How to Create DartPad Examples from GitHub Gists

Last update: 18 septembre 2023
Created: 18 septembre 2023