2017-02-13 11 views
5

テストを含むディレクトリのコマンドラインでpytestコマンドを実行していくつかのテストを実行しようとしています。しかし、最後にはいくつのテストが合格したか、失敗したかしかわかりませんが、どのテストが失敗したかはわかりません(下記のスクリーンショットを参照)。Pytestが端末ウィンドウにテスト結果を表示しない

私がこれらのものを見る前に、私はPytestの設定で何かを変更したことを思い出しません。何が問題なの?

enter image description here

更新

何でももっと奇妙なのは、私はかなり確信しているテストスクリプトの一部を実行したときに、個別にpytestで実行すると、テストの失敗を得るために表示されたということです、テストは合格:

[email protected]:~/dev/clones6/ipercron-compose/test$ pytest test_api.py 
====================== test session starts ======================= 
platform linux2 -- Python 2.7.12, pytest-3.0.5, py-1.4.32, pluggy-0.4.0 
rootdir: /home/kurt/dev/clones6/ipercron-compose/test, inifile: 
plugins: flask-0.10.0 
collected 5 items 

test_api.py ..... 

==================== 5 passed in 4.20 seconds ==================== 
[email protected]:~/dev/clones6/ipercron-compose/test$ pytest test_furion.py 
====================== test session starts ======================= 
platform linux2 -- Python 2.7.12, pytest-3.0.5, py-1.4.32, pluggy-0.4.0 
rootdir: /home/kurt/dev/clones6/ipercron-compose/test, inifile: 
plugins: flask-0.10.0 
collected 6 items 

test_furion.py ...... 

==================== 6 passed in 7.84 seconds ==================== 
[email protected]:~/dev/clones6/ipercron-compose/test$ pytest test_furion2.py 
====================== test session starts ======================= 
platform linux2 -- Python 2.7.12, pytest-3.0.5, py-1.4.32, pluggy-0.4.0 
rootdir: /home/kurt/dev/clones6/ipercron-compose/test, inifile: 
plugins: flask-0.10.0 
collected 4 items 

test_furion2.py .... 

=================== 4 passed in 12.91 seconds ==================== 

pytestコマンドを使用してテストを呼び出すか、の違いのいくつかの種類があるかもしれませんコマンド?

+0

出力は 'pytest --color = no'で表示されますか? – wim

+0

'python -m pytest'を実行するとどうなりますか? – diogenesgg

+0

あなたが見ている正確な問題は何ですか? @ user94154 –

答えて

0

pytest-htmlをインストールします。こうすることで、端末の出力に関する潜在的な問題を修正することができます。

関連する問題