facebook / facebook/TestSlide

Multi line exception message hidden by Python unittest runner

Open
#101 0 comments 0 reactions 0 assignees View on GitHub
Better Error Messages enhancement Python Unittest
Dominant language
Python
Stars
149
Forks
62
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.