搜尋測試檔案
$ nosetests -vv --collect-only test/
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
nose.selector: INFO: test/test_foo.py is executable; skipped
強制執行測試
$ nosetests --exe -v test
--exe Look for tests in python modules that are executable. Normal behavior is to exclude executable modules, since they may not be import-safe [NOSE_INCLUDE_EXE]
References :
python - Run all Tests in Directory Using Nose - Stack Overflow
Why Django nose test need --exe? - Stack Overflow
沒有留言:
張貼留言