我的配置文件看起来像这样
# function class,dir, file match this regular expression are considered tests
[NOSE_TESTMATCH]
#by default this is- (?:^|[\b_\./-])[Tt]est
# The file names after this block are ignored while testing
[NOSE_IGNORE_FILES]
test_case_1.py
# the regex that match the specified regex(if any) are excluded from tests
[NOSE_EXCLUDE]
#eg: test_s*
# the regex that match the specified regex(if any) are included from tests
[NOSE_INCLUDE]
#eg: test_s*
当我使用 -c 选项运行鼻子测试时,我得到了这个输出
[kiran@my_redhat test]$ nosetests -w cases/ -s -c examples/nose_test.config
Usage: nosetests [options]
**nosetests: error: Error reading config file 'examples/nose_test.config': File contains parsing errors: examples/nose_test.config
[line 7]: 'test_case_1.py\n'**