Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Lazy/shallow tests #9

Open
codeactual opened this issue Apr 17, 2009 · 0 comments
Open

Lazy/shallow tests #9

codeactual opened this issue Apr 17, 2009 · 0 comments

Comments

@codeactual
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant