I would just like to say that redundant tests have some negative qualities:
- The test suite will run slower, and with 2,500 tests, that is going to become an issue.
- Time spent developing unnecessary tests detracts from development of new code.
I have some common sense guidelines for test writing:
- Test the boundary cases far more than the regular cases.
- Focus tests on buggy or expected-to-be-buggy code.
- If you can write the test cases first, then good for you, but be aware that the test suite is broken until the code is completed.
- Interesting things happen when Person A writes tests for Person B's code.
- If you have performance requirements, write tests that only pass if those requirements are met.
- Coverage is important.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|