Tests should not fail in production mode, and there is a way to ensure checked mode: dart -c