sniffer icon indicating copy to clipboard operation
sniffer copied to clipboard

running sniffer over multiple directories ...

Open tansaku opened this issue 13 years ago • 5 comments

is this actually an issue? More like a feature request - would be nice to have sniffer descend all sub-directories ...?

tansaku avatar Jul 03 '12 11:07 tansaku

Wouldn't it be the same to start sniffer in the parent directory then? or am I missing some context here?

jeffh avatar Jul 30 '12 06:07 jeffh

I have a directory structure like this:

folder1 contains folder2

folder1 contains some tests, as does folder2

Currently the only way to run the tests in folder2 is to start sniffer in that directory, i.e. if I run sniffer in folder1 it does not seem to find the tests in the subfolder.

It's not a critical issue right now, but it would be nice to be able to tell sniffer to search all sub-directories for tests - perhaps there is some setting to achieve this that I am missing?

Apologies in advance if I am again missing something obvious ...

tansaku avatar Jul 30 '12 08:07 tansaku

I needed the same kind of functionality, wrote a scent.py file that tried to make it work, but ended up throwing it away and building something from scratch with watchdog instead.

http://serialized.net/2012/09/local-python-ci-with-watchdog-and-nose/

The biggest functionality problem with sniffer seemed to be that I couldn't get the name of the file that was modified in the test running phase, which I needed. (When you've got 6 packages, you really want to test the one you're editing first, because odds are it's the one you just broke, and you don't want to wait to find that out.)

jbarratt avatar Sep 13 '12 20:09 jbarratt

Take a look at my pull request. Maybe it can help you.

ajylee avatar Apr 20 '13 17:04 ajylee

As far as I understand the code (see scent_picker.py), it is possible to use more directories that the current one using

watch_paths = ['.', 'examples']

Does this solve your problem?

sebix avatar Sep 25 '14 19:09 sebix