bitprophet/spec — Issue #9: Skip file-level checks in 'spec' when --tests etc given
Author: bitprophet
Created: 2011-11-07 05:16:09+00:00
State: open

Currently, if we see any `--tests=` or `--where` or related options, we disable both our implicit `--where=tests/` **and** our entire custom Selector class (at which point `spec` is simply acting like an alias to `nosetests` with a handful of flags enabled.)

However, this is pretty annoying/confusing (since calling `spec` currently implies the "open" test discovery algorithm) and it should be possible to make the override only apply to the Selector's file-level selection tests.

The use case here is mostly using `--tests` to handpick a file, e.g. `--tests=test.py`, wherein one wishes the "open" algorithm to apply.