Score one for unit testing.

Discussion in 'Python' started by Roy Smith, Jan 2, 2014.

  1. Roy Smith

    Roy Smith Guest

    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 :)
     
    Roy Smith, Jan 2, 2014
    #1
    1. Advertising

  2. On Fri, Jan 3, 2014 at 9:53 AM, Roy Smith <> 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
     
    Chris Angelico, Jan 2, 2014
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. .Net Sports
    Replies:
    2
    Views:
    1,053
    Craig Deelsnyder
    May 3, 2005
  2. judith
    Replies:
    10
    Views:
    982
    John W. Kennedy
    Nov 21, 2006
  3. John Maclean
    Replies:
    1
    Views:
    364
    Martin P. Hellwig
    Apr 13, 2010
  4. Ulrich Eckhardt

    unit-profiling, similar to unit-testing

    Ulrich Eckhardt, Nov 16, 2011, in forum: Python
    Replies:
    6
    Views:
    359
    Roy Smith
    Nov 18, 2011
  5. Bill Mosteller
    Replies:
    0
    Views:
    250
    Bill Mosteller
    Oct 22, 2009
Loading...

Share This Page