Fork me on GitHub

Testing Django - part 3 - tdaemon

No Comments

In this part we have a short look at the tool tdaemon and it's application for testing Django.

Check out the other parts of this Testing Django series:

Writing tests in one thing - running them frequently is another thing. The lazy coder uses an change induced, automated test runner for this - this is not yet proper continuous integration testing but a first, local step into that direction. A good option for Django (and Python in general) is tdaemon.

The installation is pretty simple. Download the tdaemon.py from github, make the file executable and put it in your ~/bin folder (alternative just put it the project folder and call it with it's path).

Once you have set it up you can run it in your Django project folder in the following manner:.

$ tdaemon --test-program=django

Whenever a file is changed tdaemon will detect that and automatically run the tests for you. Isn't that handy?


Flattr this

Be the first to write a comment!

Notice: Undefined variable: commenter_name in user/themes/charcoal_konrads_version/commentform.php line 10 " size="30" tabindex="1">

Notice: Undefined variable: commenter_email in user/themes/charcoal_konrads_version/commentform.php line 14 " size="30" tabindex="2">

Notice: Undefined variable: commenter_url in user/themes/charcoal_konrads_version/commentform.php line 18 " size="30" tabindex="3">

Warning: PDOStatement::execute() [pdostatement.execute]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '} t
			INNER JOIN {tag2post} tp
			ON t.id=tp.tag_id
			INNER JOIN habari_posts ' at line 2 in system/classes/databaseconnection.php line 271
Warning: Invalid argument supplied for foreach() in user/themes/charcoal_konrads_version/theme.php line 157
    Warning: Invalid argument supplied for foreach() in user/themes/charcoal_konrads_version/taglist.php line 2