[SciPy-dev] Nose tests - merged

Robert Kern robert.kern@gmail....
Wed Jan 16 13:07:22 CST 2008

Matthew Brett wrote:
> Actually, it would not be too hard to have tests in a benchmark
> directory, with names beginning with 'bench', no decorators.  It means
> that the tests have to be renamed from test_ to bench_, and that the
> tests would not, by default, be found by the vanilla 'nosetests
> /my/directory/somewhere', but I guess that's OK (backtracking on
> previous opinion).   Better?

I would like the benchmarks to be *not* found unless specifically asked for, 
even when just using nosetests instead of scipy.test(). Our use of nose to 
collect and run these benchmarks is convenient (and a good idea, IMO), but it is 
not the purpose of the tool or the framework to run benchmarks. I think that 
explicit action should be required to convince nose to run the benchmarks.

We/I can rig up a simple script (nosebench?) that will configure nose with the 
appropriate regexes to find the benchmarks.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the Scipy-dev mailing list