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

Improve surfacing test failures #103

Open
mfridman opened this issue Oct 4, 2023 · 0 comments
Open

Improve surfacing test failures #103

mfridman opened this issue Oct 4, 2023 · 0 comments

Comments

@mfridman
Copy link
Owner

mfridman commented Oct 4, 2023

Sometimes you want to see just the failed test names. By default tparse prints package/test and the corresponding failure output, but these can add up.

Not sure how to solve this, maybe a -fail-name-only flag or -disable-failure-output or -include-failures-in-test-table, to effectively show the names of the failed tests. (these are contrived flag names, they would normally be shorter).

The go test output for a large suite prints this sort of thing, and what I want is to hide the --- PASS and only see the --- FAIL lines, tparse should help me here.

--- FAIL: "***********************"
    --- PASS: 
        --- PASS: 
        --- PASS: 
            --- PASS: 
            --- PASS: 
        --- PASS: 
            --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
    --- FAIL: "***********************"
        --- PASS: 
        --- FAIL: "***********************"
            --- FAIL: "***********************"
            --- FAIL: "***********************"
            --- PASS: 
        --- PASS: 
    --- PASS: 
        --- PASS: 
        --- PASS: 
    --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
    --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
            --- PASS: 
                --- PASS: 
                --- PASS: 
            --- PASS: 
                --- PASS: 
                --- PASS: 
        --- PASS: 
            --- PASS: 
            --- PASS: 
    --- PASS: 
        --- PASS: 
        --- PASS: 
    --- PASS: 
    --- PASS: 
    --- PASS: 
        --- PASS: 
        --- PASS: 
    --- PASS: 
    --- PASS: 
        --- PASS: 
            --- PASS: 
            --- PASS: 
            --- PASS: 
            --- PASS: 
            --- PASS: 
            --- PASS: 
            --- PASS: 
            --- PASS: 
        --- PASS: 
            --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
    --- PASS: 
        --- PASS: 
            --- PASS: 
            --- PASS: 
            --- PASS: 
    --- PASS: 
        --- PASS: 
        --- PASS: 
            --- PASS: 
            --- PASS: 
    --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
    --- PASS: 
        --- PASS: 
            --- PASS: 
            --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
    --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
    --- PASS: 
        --- PASS: 
            --- PASS: 
            --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
            --- PASS: 
            --- PASS: 
                --- PASS: 
    --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
    --- PASS: 
        --- PASS: 
    --- PASS: 
        --- PASS: 
            --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
    --- PASS: 
        --- PASS: 
            --- PASS: 
                --- PASS: 
                --- PASS: 
            --- PASS: 
            --- PASS: 
                --- PASS: 
                --- PASS: 
            --- PASS: 
                --- PASS: 
                --- PASS: 
    --- PASS: 
        --- PASS: 
            --- PASS: 
            --- PASS: 
                --- PASS: 
                --- PASS: 
            --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
                    --- PASS: 
                    --- PASS: 
                    --- PASS: 
                    --- PASS: 
            --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
                --- PASS: 
    --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
    --- PASS: 
        --- PASS: 
            --- PASS: 
                --- PASS: 
                --- PASS: 
            --- PASS: 
                --- PASS: 
                --- PASS: 
    --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
            --- PASS: 
            --- PASS: 
            --- PASS: 
        --- PASS: 
    --- PASS: 
        --- PASS: 
            --- PASS: 
                --- PASS: 
                --- PASS: 
                    --- PASS: 
                    --- PASS: 
                    --- PASS: 
            --- PASS: 
        --- PASS: 
        --- PASS: 
        --- PASS: 
            --- PASS: 
            --- PASS: 
        --- PASS: 
        --- PASS: 
FAIL
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

1 participant