Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong color formatting output with FAILED test. #8371

Closed
SebFernandez opened this issue Feb 24, 2021 · 1 comment
Closed

Wrong color formatting output with FAILED test. #8371

SebFernandez opened this issue Feb 24, 2021 · 1 comment

Comments

@SebFernandez
Copy link

SebFernandez commented Feb 24, 2021

Context
I'm using Pytest to test a Flask webapp, when I execute my tests there is one of them that FAILS at the middel of the sequence, so the format of the following text will be red instead of green when they PASS.

Steps to reproduce:

  1. Create a set of tests.
  2. Place one test that will fail in order to be executed at the middle of the test execution.

Expected behavior
A clear and concise description of what you expected to happen.
Wheter the test fails the color will be red and if it's a pass, the color will be green.

Screenshots
Here's a screenshot of the issue
VS Code detailed information

Environment:

  • OS: Xubuntu 20.10
  • Python Version 3.8.6
  • Pytest version 6.2.2
  • Flask version 1.1.2

Additional context
I'm using a Terminal hosted by VS Code (v1.53.2)

PS: I would love to contribute as it's my first ever issue reported but I can't figure out at the source code where is this coded.

@The-Compiler
Copy link
Member

This is intended, so that it's clear that something failed in the past even with longer outputs.

RonnyPfannschmidt added a commit to RonnyPfannschmidt/pytest that referenced this issue Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants