zeitgeist needs a more powerful testing framework

Bug #435099 reported by Markus Korn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zeitgeist Framework
Fix Released
Undecided
Unassigned

Bug Description

Right now zeitgeist is using pure python unittest plus a self written script to run all tests. I think there are cases where we need a more powerful testing framework, I suggest using nose [1].
Some examples:
 * we are using temporary databases for our tests, it would be nice if we could hook into a testfailure with a sqlite3 terminal to introspect the content and run queries manually before deleting the database
 * right now it is a pain to select individual testcases, nose can help us alot with this
 * at the moment we are just ignoring the output of logging, but especially in cases where a testcase fails this information is useful, nose has a plugin to capture this logs and append it to the report

[1] http://somethingaboutorange.com/mrl/projects/nose/0.11.1/

Markus Korn (thekorn)
description: updated
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

I don't know a lot about nose, but can't you use nose to run the tests we already have and then accomplish what you want?

My primary concern here is probably keeping the third party deps to a minimum - also for developers.

Also I don't quite agree that it is so hard to run individual tests... just:

  ./foo-test.py MyTestClass.testFrobnicator

Is that so bad? It is probably because I don't know what I am missing out on :-)

Revision history for this message
Seif Lotfy (seif) wrote :

seems to me that our current testing framework is pretty good should i set this as fixed?

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Yeah, we've got the json importer now. That helps a lot at least.

Seif Lotfy (seif)
Changed in zeitgeist:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.