nose-devs/nose — pull request #730 by mdengler (2013-09-04 09:59:13+00:00)
Title: find configuration files in current directory and its parents

In case you would consider this type of change, here is a patch to read the config files from the current working directory and any of its parents, a la setup.cfg.

The motivating use case is I would like to store configuration options like "attr=!ignore" in a non-user-specific configuration file and have those options apply to whole subdirectories of tests/testable code.

If you would consider a pull request of this sort, let me know, and I will create a larger pull request with proposed documentation changes to reflect this.

There is at least one alternative approach that you may consider: read configuration files from the directories containing the tests, and their parents.

Storing config files near the tests is my preferred approach, but the code would be more complicated and we would change the configuration based on the configuration (since we use the configuration to determine where the test directories are). I felt this would be too large a pull request unless you were open to that. Please let me know if you would accept a pull request for this, and I will come up with one.

I can see some objections to this, namely that the test behaviour would change based on the current working directory of the nosetest command, but given all_config_files already allows this, I thought I would propose this new feature anyway.