Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
-k特定の名前パターン/述語に従うテストを除外するために使用できますが、特定のパッケージまたはディレクトリの下のテストを除外できますか? ドキュメントに関連するフラグは見つかりませんでしたが、おそらく何か不足しています。
-k
py.test の引数として場所を指定できます。
py.test test/comp_1/
もちろん、これを-kswitchと組み合わせることもできます。
py.test -k slow test/comp_1/
これはあなたの質問に答えていますか?