Manually adding test suite to nose

I want to create a test suite manually instead of using test discovery (only in one module, the others should use discovery). I found how I can do this in unittests, but I'm not sure how to transfer that to nose and how it mixes with the discovery. The nose docs don't have examples and I don't understand how I'm supposed to use them. Could somebody please give me an example?

Details: I have test classes where I want to run each method a few times with different parameters. Ideally also changing the test names to something readable. I tried test generators, but they are quite buggy.


Give nosetests the path to your suite, and it will be executed instead of using Nose's test discovery.

This command:


Does automatic test discovery.

These commands:

nosetests /path/to/
nosetests /path/to/directory

Run the tests in and directory respectively.

Alternatively, you could start auto discovery in a specific directory:

nosetests -w /path/to/directory

Check out nosetests -h for a full list of options.

Need Your Help

Simple MySQL INSERT query on simple InnoDB table takes 40+ms

mysql performance insert innodb myisam

I'm wondering what's exact cause that makes insert queries on mysql/innodb to last at least 40ms on machine with fairly strong cpu. "Equivalent" query runs <10ms on same MyISAM table (tables are

How to add a view on cell.contentview of uitableview iphone sdk

iphone uitableview

In my application I'm creating a .xib of a class and loading that .xib on cells of uitableview of another class. I want to add this .xib to cell.contentView and not cell. How shall I do that?