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

cmd/go: go test -c should allow a configurable output path for package.test #7724

Closed
joefitzgerald opened this issue Apr 7, 2014 · 5 comments
Milestone

Comments

@joefitzgerald
Copy link

What does 'go version' print?

go version go1.2.1 darwin/386

What happened?

1. run `go test -outputpath /tmp -c src/path/to/file_test.go`
2. observe to.test get created in src/path/to/
3. wish that -outputpath or -o  could be used to redirect to.test to some other location

What should have happened instead?

a) to.test is placed in a directory specified using -outputpath, -o, or some other flag
b) a variant of `-c` is available which performs the same function but does not actually
generate output in the testDir

Please provide any additional information below.

In developing go-plus (https://atom.io/packages/go-plus /
https://github.com/joefitzgerald/go-plus), I use `go build` and `go test` to provide
syntax checking functionality to the end user. I would like to suppress the test output
while still being able to use `go test` without actually running the tests.
@ianlancetaylor
Copy link
Contributor

Comment 1:

Labels changed: added repo-main, release-go1.4.

Status changed to Accepted.

@joefitzgerald
Copy link
Author

Comment 2:

Candidate solution: https://golang.org/cl/85230043/

@gopherbot
Copy link

Comment 3:

CL https://golang.org/cl/85230043 references this issue.

@gopherbot
Copy link

Comment 4:

CL https://golang.org/cl/149070043 mentions this issue.

@rsc
Copy link
Contributor

rsc commented Sep 26, 2014

Comment 5:

This issue was closed by revision ce143f2.

Status changed to Fixed.

@rsc rsc added this to the Go1.4 milestone Apr 14, 2015
@rsc rsc removed the release-go1.4 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 25, 2018
While we are here, remove undocumented, meaningless test -file flag.

Fixes golang#7724.

LGTM=r
R=golang-codereviews, r
CC=golang-codereviews, iant
https://golang.org/cl/149070043
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 26, 2018
While we are here, remove undocumented, meaningless test -file flag.

Fixes golang#7724.

LGTM=r
R=golang-codereviews, r
CC=golang-codereviews, iant
https://golang.org/cl/149070043
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 9, 2018
While we are here, remove undocumented, meaningless test -file flag.

Fixes golang#7724.

LGTM=r
R=golang-codereviews, r
CC=golang-codereviews, iant
https://golang.org/cl/149070043
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 30, 2018
While we are here, remove undocumented, meaningless test -file flag.

Fixes golang#7724.

LGTM=r
R=golang-codereviews, r
CC=golang-codereviews, iant
https://golang.org/cl/149070043
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants