在travis中控制Python详细程度/日志处理程序级别,以减轻由于超出日志文件大小而导致的错误

时间:2019-06-19 13:26:50

标签: python logging travis-ci

当我在本地运行单元测试时,它们会生成约400 KB的日志文件。但是,当它们为run on travis时,显然有一些非常冗长的日志处理程序处于活动状态,如测试error due to the logfile exceeding 4 MB。如何控制travis测试运行的输出详细程度?

我还尝试使用pytest来运行测试(在pyunit中),因为pytest捕获了输出。这导致了我的测试erroring due to a lack of output for ten minutes

如果有关系,我正在使用ci-helpers软件包。

0 个答案:

没有答案