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

go test should provide feedback about what tests failed and why without giving it the flag -test.v #333

Open
gregorriegler opened this issue Oct 17, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@gregorriegler
Copy link
Collaborator

Failure Output is just like that:

❯ go test
exit status 1
FAIL	github.com/remotemobprogramming/mob/v4	0.142s

However, when I use the flag I get the feedback I need:

go test -test.v
=== RUN   TestStartDoneCoAuthors
    mob_test.go:1589: Creating testbed in temporary directory /tmp/TestStartDoneCoAuthors3728465029/001
    mob_test.go:1589:   git --bare init
    mob_test.go:1589:   git symbolic-ref HEAD refs/heads/master
    mob_test.go:1589:   git clone --origin origin file:///tmp/TestStartDoneCoAuthors3728465029/001/remote .
    mob_test.go:1589:   git config --local user.name local
    mob_test.go:1589:   git config --local user.email [email protected]
    mob_test.go:1589:   git checkout -b master
    mob_test.go:1589:   git add .
    mob_test.go:1589:   git commit -m "initial import"
    mob_test.go:1589:   git push --set-upstream --all origin
    mob_test.go:1589:   git clone --origin origin file:///tmp/TestStartDoneCoAuthors3728465029/001/remote .
    mob_test.go:1589:   git config --local user.name localother
    mob_test.go:1589:   git config --local user.email [email protected]
    mob_test.go:1589:   git clone --origin origin file:///tmp/TestStartDoneCoAuthors3728465029/001/remote .
    mob_test.go:1589:   git config --local user.name alice
    mob_test.go:1589:   git config --local user.email [email protected]
    mob_test.go:1589:   git clone --origin origin file:///tmp/TestStartDoneCoAuthors3728465029/001/remote .
    mob_test.go:1589:   git config --local user.name bob
    mob_test.go:1589:   git config --local user.email [email protected]
    mob_test.go:1589:   git clone --origin origin file:///tmp/TestStartDoneCoAuthors3728465029/001/remote .
    mob_test.go:1589:   git config --local user.name local-symlink
    mob_test.go:1589:   git config --local user.email [email protected]
    mob_test.go:1589:
        ===== cd /tmp/TestStartDoneCoAuthors3728465029/001/local
    mob_test.go:1589:
        ===== cd /tmp/TestStartDoneCoAuthors3728465029/001/alice
    mob_test.go:1589:   git fetch origin --prune
    mob_test.go:1589:   git merge FETCH_HEAD --ff-only
    mob_test.go:1589: > starting new session from origin/master
    mob_test.go:1589:   git checkout -B mob-session origin/master
    mob_test.go:1589:   git push --no-verify --set-upstream origin mob-session
    mob_test.go:1589: > you are on wip branch 'mob-session' (base branch 'master')
    mob_test.go:1589:   git add --all
    mob_test.go:1589:   git commit --message mob next [ci-skip] [ci skip] [skip ci]
    mob_test.go:1589:
    mob_test.go:1589:   lastFile:file3.txt --no-verify
    mob_test.go:1589: ERROR git diff HEAD^5 --stat
    mob_test.go:1589: ERROR fatal: ambiguous argument 'HEAD^5': unknown revision or path not in the working tree.
    mob_test.go:1589: ERROR Use '--' to separate paths from revisions, like this:
    mob_test.go:1589: ERROR 'git <command> [<revision>...] -- [<file>...]'
    mob_test.go:1589: ERROR exit status 128
exit status 1
FAIL	github.com/remotemobprogramming/mob/v4	0.144s
@gregorriegler gregorriegler added the enhancement New feature or request label Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant