Skip to content

Clean up default test output #910

Closed
Closed
@JukkaL

Description

@JukkaL

The current test output is a little messy. Consider this test run:

mypy $ ./runtests.py unit-test -a "*MultiAnd*"
PARALLEL 8
SUMMARY  12 tasks selected
0 test cases run, all passed.; running {#0, #1, #2, #3, #4, #5, #6, #7}         
*** OK ***
0 test cases run, all passed.; running {#0, #1, #2, #3, #4, #5, #7, #8}         
*** OK ***
0 test cases run, all passed.; running {#0, #1, #2, #3, #4, #5, #8, #9}         
*** OK ***
0 test cases run, all passed.
*** OK ***
0 test cases run, all passed.; running {#0, #3, #4, #5, #8, #9, #10, #11}       
*** OK ***
0 test cases run, all passed.
*** OK ***
0 test cases run, all passed.
*** OK ***
0 test cases run, all passed.; running {#0, #3, #5, #9, #10, #11}               
*** OK ***
0 test cases run, all passed.; running {#0, #3, #10, #11}                       
*** OK ***
0 test cases run, all passed.; running {#3, #10, #11}                           
*** OK ***
0 test cases run, all passed.0; running {#3, #11}                               
*** OK ***
2 test cases run, all passed.0; running {#3}                                    
*** OK ***
SUMMARY  all 12 tasks passed                    

I'd prefer something like this instead (the intermediate subsets {...} are useful as well and should not be removed, but they should be cleaned up properly):

mypy $ ./runtests.py unit-test -a "*MultiAnd*"
PARALLEL 8
SUMMARY  12 tasks selected
SUMMARY  all 12 tasks passed, all 2 test cases passed
*** OK ***

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions