As of v0.20.0, you can use the error_if and warn_if configs to set custom failure thresholds in your tests. For more details, see reference for more information.
For dbt v0.19.0 and earlier, you could try these possible solutions: