Skip to content

Incorrect color of indicators in the test summary after test failed #7458

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

Closed
skripnik-bogdan opened this issue Jul 7, 2020 · 2 comments
Closed
Labels
type: question general question, might be closed after 2 weeks of inactivity

Comments

@skripnik-bogdan
Copy link

From version PyTest 5.3.0+ (looks like due to #6097) when one of @parametrize test fail, the others “[…%]” indicators in the test summary have red (failed) color.

Color_issue

Instance:

@pytest.mark.parametrize('example', range(10))
def test_test(example):
    if example == 3:
        assert False
    else:
        assert True

Pip:

Package                       Version  
----------------------------- ---------
attrs                         19.3.0   
backports.functools-lru-cache 1.6.1    
beautifulsoup4                4.9.1    
cachetools                    4.1.1    
certifi                       2020.6.20
chardet                       3.0.4    
colorama                      0.4.3    
configparser                  5.0.0    
crayons                       0.3.1    
cssselect                     1.1.0    
furl                          2.1.0    
future                        0.18.2   
google-auth                   1.18.0   
google-auth-oauthlib          0.4.1    
gspread                       3.6.0    
httplib2                      0.18.1   
idna                          2.10     
lxml                          4.5.1    
more-itertools                8.4.0    
numpy                         1.19.0   
oauth2client                  4.1.3    
oauthlib                      3.1.0    
orderedmultidict              1.0.1    
packaging                     20.4     
Pillow                        7.2.0    
pip                           20.0.2   
pluggy                        0.13.1   
py                            1.9.0    
pyasn1                        0.4.8    
pyasn1-modules                0.2.8    
pyparsing                     2.4.7    
pyquery                       1.4.1    
pytest                        5.4.3    
requests                      2.24.0   
requests-oauthlib             1.3.0    
rsa                           4.6      
selene                        1.0.2    
selenium                      3.141.0  
setuptools                    46.0.0   
six                           1.15.0   
soupsieve                     2.0.1    
urllib3                       1.25.9   
wcwidth                       0.2.5    
webdriver-manager             3.2.1    
wheel                         0.34.2
@The-Compiler
Copy link
Member

As far as I know, this is intended - for longer testsuites with a lot of output, it's quite nice to see whether something failed but already scrolled off the screen.

@Zac-HD Zac-HD added the type: question general question, might be closed after 2 weeks of inactivity label Jul 8, 2020
@Zac-HD
Copy link
Member

Zac-HD commented Jul 8, 2020

Yep, this is the intended behaviour... though it does look a little odd in verbose mode 😅

@Zac-HD Zac-HD closed this as completed Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question general question, might be closed after 2 weeks of inactivity
Projects
None yet
Development

No branches or pull requests

3 participants