cost 71 ms
如何刪除跳過測試的詳細輸出?

[英]How to remove verbose output for skipped tests?

背景:我有一堆測試(20+),我無法在我的工作機器上執行,因為它們需要一個有效的 CUDA 環境。 所以為了避免錯誤,我通過unittest.skipIf使它們成為條件。 抽象掉細節,我的測試模塊如下所示: 現在,當我通過green運行測試時,每個跳過的測試都會以詳細的方式報告,極大地污染了輸 ...

像鼻子測試一樣,以綠色跳過具有某些屬性的測試

[英]Skipping tests with certain attributes in green like you can with nosetests

我正在嘗試讓綠色跳過具有某些屬性(例如ATTR=!slow )的測試,就像您可以在鼻子(使用@attr('slow')或僅通過為測試分配屬性)中那樣進行測試: http:// nose .readthedocs.org / EN /最新/插件/ attrib.html http://nos ...

如何更改python-green使用的python版本

[英]How to change python version used by python-green

我的盒子里安裝了Python 2.7和3.3。 如何更改python-green配置以使用其中一個而不更改/ usr / bin / python符號鏈接? ...

如何使用python-green生成xml報告以進行單元測試和覆蓋?

[英]how to generate xml report using python-green for unit testing and coverage?

嘗試使用python green來控制python(2.7.x)代碼質量,並將其集成到jenkins中。 在鼻子中,有--with-xunit參數來生成nosetests.xml單元測試。 在coverage ,可以使用xml參數生成類似coverage.xml覆蓋率報告。 兩 ...

使用Green單元測試運行器計時

[英]Timing out tests with Green unit test runner

我使用以下設置,使用超時插件通過py.test運行測試: (來自https://bitbucket.org/miohtama/cryptoassets/src/bf2c3affa5528c6e96bfcc96b0caf4b0c9a9ec27/cryptoassets/core/tests ...


排序:
質量:
 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM