You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.
Some Pádraic Brady blog posts articulated some problems which are
definitely prevalent in the test suites. Most tests contain more than one
assertion, and some have perhaps hundreds as they loop over test data (ex.
Test/Analyst/BasicDecimal.php).
It was clear during dev. that it slowed identification of failures. Using
—stop-on-failure and adding details to assertion messages did help, but
those alone probably aren’t clean enough for long-term use.
Some Pádraic Brady blog posts articulated some problems which are
definitely prevalent in the test suites. Most tests contain more than one
assertion, and some have perhaps hundreds as they loop over test data (ex.
Test/Analyst/BasicDecimal.php).
It was clear during dev. that it slowed identification of failures. Using
—stop-on-failure and adding details to assertion messages did help, but
those alone probably aren’t clean enough for long-term use.
References:
http://blog.astrumfutura.com/archives/387-Unit-Testing-Multiple-Assertions-And-LazyShallow-Testing-Are-Evil.html
http://blog.astrumfutura.com/archives/388-Unit-Testing-One-Test,-One-Assertion-Why-It-Works.html
The text was updated successfully, but these errors were encountered: