facebook / facebook/TestSlide

Multi line exception message hidden by Python unittest runner

未关闭
#101 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Better Error Messages enhancement Python Unittest
主要语言
Python
星标
149
派生
62
PR 合并指标
30 天内没有已合并 PR

描述

TestSlide exceptions often have a multi-line message. While TestSlide properly shows them in full, Python unittest test runner seem to swallow all but the first exception line. This makes it difficult for users to understand why things fail.

This can potentially be fixed by detecting when **not** running with TestSlide test runner (or when running with Python unttest test runner) and change all exceptions to be single line.

CC @pallotron

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。