[SciPy-dev] Nose tests - merged

Fernando Perez fperez.net@gmail....
Wed Jan 16 11:02:24 CST 2008


On Jan 16, 2008 9:52 AM, Jarrod Millman <millman@berkeley.edu> wrote:
> On Jan 16, 2008 5:04 AM, Matthew Brett <matthew.brett@gmail.com> wrote:
> > Reading further and testing, I find that I was wrong about this.
> > Nose, by default, will discover tests within package directories, or
> > directories matching the usual nose test file regexp, and not
> > otherwise.  'benchmarks' does not match this regexp.  So, allowing
> > tests in benchmark directories will involve some further non-default
> > nose tweaking (ah that name).  Personally, I would rather keep our use
> > of nose as close to default as possible, and therefore do benchmarks
> > in the test directory, as before, with
> >
> > @dec.bench
> >
> > decorators to identify them.  Do y'all agree?
>
> +1

As we discussed the other day, we could also have a convention for
benchmark-only files, *still in the test directory*, to be named
something like

bench_test_*.py

This way nose still picks them up, yet to the human reader it's clear
that those are benchmarks.

Cheers,

f


More information about the Scipy-dev mailing list