-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
src/goTest: Add command Test Function At Cursor or Test Previous #1509
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
This PR (HEAD: c97b2eb) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/vscode-go/+/320769 to see it. Tip: You can toggle comments from me using the |
Message from Go Bot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
Message from Hyang-Ah Hana Kim: Patch Set 1: Run-TryBot+1 (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
Message from kokoro: Patch Set 1: Kokoro presubmit build starting for golang/vscode-go/gcp_ubuntu/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
Message from kokoro: Patch Set 1: TryBot-Result-1 Kokoro presubmit build finished with status: FAILURE Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
Message from Hyang-Ah Hana Kim: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
c97b2eb
to
0e3f90f
Compare
This PR (HEAD: 0e3f90f) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/vscode-go/+/320769 to see it. Tip: You can toggle comments from me using the |
Message from Mislav Marohnić: Patch Set 2: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
Message from Mislav Marohnić: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
Message from Hyang-Ah Hana Kim: Patch Set 2: Run-TryBot+1 (5 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
Message from kokoro: Patch Set 2: Kokoro presubmit build starting for golang/vscode-go/gcp_ubuntu/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
Message from kokoro: Patch Set 2: TryBot-Result-1 Kokoro presubmit build finished with status: FAILURE Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
This runs `Test Function At Cursor` if a unit test is found at the cursor, otherwise it turns `Test Previous`.
0e3f90f
to
0054155
Compare
This PR (HEAD: 0054155) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/vscode-go/+/320769 to see it. Tip: You can toggle comments from me using the |
Message from Mislav Marohnić: Patch Set 2: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
Message from Hyang-Ah Hana Kim: Patch Set 3: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
Message from kokoro: Patch Set 3: Kokoro presubmit build starting for golang/vscode-go/gcp_ubuntu/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
Message from kokoro: Patch Set 3: TryBot-Result+1 Kokoro presubmit build finished with status: SUCCESS Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
Message from Hyang-Ah Hana Kim: Patch Set 3: Code-Review+2 Trust+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
Message from Mislav Marohnić: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
Message from Michael Knyszek: Patch Set 4: Trust+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/320769. |
This runs `Test Function At Cursor` if a unit test is found at the cursor, otherwise it turns `Test Previous`. Fixes #1508 Change-Id: I91305797dfeccd79c1f5ea14298a60803f24492b GitHub-Last-Rev: 0054155 GitHub-Pull-Request: #1509 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/320769 Trust: Michael Knyszek <mknyszek@google.com> Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This PR is being closed because golang.org/cl/320769 has been merged. |
We will soon release this in v0.26.0. |
In the case of cursorOrPrevious command not finding a Go test under the cursor, it will call go.test.previous. However, cursorOrPrevious automatically saves when there was a test found, but previous does not. This can lead to the user being surprised as to why doesn't cursorOrPrevious always save. Followup to #1509 Change-Id: Ia5b625b4819727555fb20a1fb022200a2e4abd4e GitHub-Last-Rev: 1ec414f GitHub-Pull-Request: #1751 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/347789 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Trust: Suzy Mueller <suzmue@golang.org> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com>
This runs
Test Function At Cursor
if a unit test is found at thecursor, otherwise it turns
Test Previous
.Fixes #1508