tartley.com

A website dedicated to oneself has been described as the greatest act of hubris. Welcome aboard.

Primary menu

Skip to primary content
Skip to secondary content
  • Home

Category Archives: Testing

Test-driven software development

Django testing 201 : Acceptance Tests vs Unit Tests

Posted on Thu 14 Jul 2011 by tartley — 6 Comments ↓

I’m finding that our Django project’s tests fall into an uncomfortable middle-ground, halfway between end-to-end acceptance tests and proper unit tests. As such they don’t exhibit the best qualities of either. I’d like to fix this. We’re testing our Django Continue reading →

Posted in Python, Testing | 6 Replies

Rerun unit tests whenever files update

Posted on Fri 15 Oct 2010 by tartley — 10 Comments ↓

In which I once again indulge my obscure command-line fetish. I often spend hours of my day cycling through: Edit code and its unit tests Save my changes Push a button or change window focus to explicitly re-run the code’s Continue reading →

Posted in MSWin-dev, Python, Software, Testing | 10 Replies

Acceptance Testing .NET Applications using IronPython

Posted on Tue 16 Mar 2010 by tartley — 6 Comments ↓

The following was originally published in the excellent Python Magazine. Thier contractual exclusivity period has now long expired, so here it comes again. Many thanks to my technical reviewer Michael Foord, and to the editors Brandon Craig Rhodes and Doug Continue reading →

Posted in MSWin-dev, Python, Software, Testing | 6 Replies

Use of Asserts in Unit-Tested Code

Posted on Fri 27 Nov 2009 by tartley — 4 Comments ↓

I pretty much abandoned the use of asserts in production code once I was introduced to test driven development. Amongst their failings, assert statements are only suited to testing very localised conditions, such as within a particular function – it’s Continue reading →

Posted in Python, Software, Testing | 4 Replies

Testwatcher

Posted on Wed 29 Apr 2009 by tartley — 5 Comments ↓

Sometimes when programming I like to leave unit tests running repeatedly in one window while editing the code and tests in another. The bash command watch is useful for this, and can highlight the differences between one invocation and the Continue reading →

Posted in Python, Testing | 5 Replies

Using assertAlmostEquals to compare to N Significant Figures

Posted on Wed 17 Dec 2008 by tartley — 5 Comments ↓

I want a Python unittest.assertAlmostEquals that compares numbers to N significant figures, instead of N decimal places. [python] >>> test.assertAlmostEquals(1e-8, 5e-14) >>> [/python] Even though these two numbers differ by a factor of 5 million, when comparing them to seven Continue reading →

Posted in Python, Testing | 5 Replies

Acceptance testing a pyglet application

Posted on Fri 4 Jul 2008 by tartley — 3 Comments ↓

I’ve been trying to create a simple acceptance test for a pyglet application. A thorough suite of acceptance tests, verifying the correctness of all the shapes drawn to the screen by OpenGL, sounds like far more work than I want Continue reading →

Posted in Graphics, Python, Testing | 3 Replies

Post navigation

← Older posts

About me

Jonathan Hartley, made of meat.
  • Send me an email
  • Follow my tweets
  • See my Facebook
  • See my projects
  • Read links I like

Administrivia

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Posts by subject

  • Geek (105)
    • GIS (3)
    • Graphics (16)
    • MSWin-dev (12)
    • OSX-dev (2)
    • Presentations (8)
    • Python (49)
    • Software (30)
    • Tartley.com (5)
    • Testing (11)
    • Version control (1)
      • Git (1)
    • Vim (2)
  • Personal (144)
    • Creative (15)
      • Draw (2)
      • GameDev (4)
      • Music (4)
      • Write (3)
    • IMHO (25)
    • Journal (28)
    • Media (83)
      • Books (44)
      • Comics (1)
      • Exhibits (3)
      • Games (7)
      • Gigs (3)
      • Movies (21)
      • Shows (6)
      • TV (1)
      • Web (1)
    • Photos (1)
    • Refried (8)
  • Uncategorized (1)

RSS Photos

  • 2011-11 New Zealand, Susanna and Menno Wedding!
  • 2012-02-02 Visit Linda in Seville
  • 2012-04-28 Zander arrives
  • 2012-06 Zander comes home
  • 2012-07 Life goes on

License

Creative Commons Licence
All of tartley.com by Jonathan Hartley is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License, unless otherwise specified.
Copyright © 2013 tartley.com . All Rights Reserved.
Powered by WordPress | Theme: Catch Box