Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #63004 > unrolled thread
| Started by | Roy Smith <roy@panix.com> |
|---|---|
| First post | 2014-01-02 17:53 -0500 |
| Last post | 2014-01-03 10:00 +1100 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
Score one for unit testing. Roy Smith <roy@panix.com> - 2014-01-02 17:53 -0500
Re: Score one for unit testing. Chris Angelico <rosuav@gmail.com> - 2014-01-03 10:00 +1100
| From | Roy Smith <roy@panix.com> |
|---|---|
| Date | 2014-01-02 17:53 -0500 |
| Subject | Score one for unit testing. |
| Message-ID | <roy-88539A.17532802012014@news.panix.com> |
We've got a test that's been running fine ever since it was written a month or so ago. Now, it's failing intermittently on our CI (continuous integration) box, so I took a look. It turns out it's a stupid test because it depends on pre-existing data in the database. But, the win is that while looking at the code to figure out why this was failing, I noticed a completely unrelated bug in the production code. See, unit testing helps find bugs :-)
[toc] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-01-03 10:00 +1100 |
| Message-ID | <mailman.4810.1388703653.18130.python-list@python.org> |
| In reply to | #63004 |
On Fri, Jan 3, 2014 at 9:53 AM, Roy Smith <roy@panix.com> wrote: > We've got a test that's been running fine ever since it was written a > month or so ago. Now, it's failing intermittently on our CI (continuous > integration) box, so I took a look. I recommend you solve these problems the way these folks did: http://thedailywtf.com/Articles/Productive-Testing.aspx ChrisA
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web