Score one for unit testing.

R

Roy Smith

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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top