[unit-test-discovery](https://link.segmentfault.com/?enc=efesFPhFgZAp%2FW%2F3jJTWAQ%3D%3D.m3a0IV0EJ8AgCullw2Yoc7otmZKBJbZpabXaryF6KchIG%2Bmy1DLyaqX4uSDpWHx4mdxrwvhrE5ZQ89oh6BhDl6s0Ecy7O6l4trqE%2FPX2l6I%3D) > Note > > As a shortcut, `python -m unittest` is the equivalent of `python -m unittest > discover`. If you want to pass arguments to test discovery the discover sub-> command must be used explicitly. 看文档,一旦加参数就必须用 `python -m unittest discover` 的形式才能自动查找测试文件。如果要指定目录的话,可能应该是: `python -m unittest discover testing`