-
Notifications
You must be signed in to change notification settings - Fork 752
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
test: test explorer UI does not recognize FuzzTest #2023
Comments
Change https://golang.org/cl/380501 mentions this issue: |
Change https://golang.org/cl/380500 mentions this issue: |
Change https://golang.org/cl/380500 mentions this issue: |
Detected fuzz functions are classified as a 'fuzz' type, so we can later add special handling for fuzzing functionality. Now they are like other test functions. For #2023 Change-Id: I7f3998ec6acf8a766c05380077d41c459d685079 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/380500 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Suzy Mueller <suzmue@golang.org>
Change https://golang.org/cl/383218 mentions this issue: |
Change https://go.dev/cl/380500 mentions this issue: |
Change https://go.dev/cl/383218 mentions this issue: |
Change https://go.dev/cl/380501 mentions this issue: |
Change https://go.dev/cl/383935 mentions this issue: |
…r UI Detected fuzz functions are classified as a 'fuzz' type, so we can later add special handling for fuzzing functionality. Now they are like other test functions. For #2023 Change-Id: I7f3998ec6acf8a766c05380077d41c459d685079 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/380500 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Suzy Mueller <suzmue@golang.org> (cherry picked from commit c42b3cd) Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/383218 Reviewed-by: Robert Findley <rfindley@google.com>
Subtests are detected dynamically - while running tests. GoTestRunner heuristically builds subtest trees by parsing the test names observed while running tests. Before this CL, it used both '/' and '#' as the separator for parsing. For example, it placed a test item for Foo as a child of TestXxx when it observed TestXxx/Foo, and a test item 01 as a child of TestXxx if it saw TestXxx#01. However, go test uses '#' to resolve conflicts in subtest names, so it's not right to assume TestXXX#01 is a subtest of TestXXX. Moreover, treating TestXXX/subtest#01 or TestXXX/subtest#02 as a subtest of TestXXX/subtest confuses the text UI API because `go test -json` will generate event sequence like TestXXX run TestXXX/subtest run TestXXX/subtest#01 run TestXXX/subtest#02 run TestXXX/subtest pass TestXXX/subtest#01 pass TestXXX/subtest#02 pass TestXXX pass That causes the test UI to show only the last item for TestXXX/subtest#02 to appear in TestXXX/subtest's child. This bug also makes Fuzz test's crasher and seed case listing confusing. This CL removes '#' from the cutset. Fixes #2023 For #1922 Change-Id: I33ba5c17e9095686a87c719d44fe7330269d9cc3 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/380501 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Suzy Mueller <suzmue@golang.org> (cherry picked from commit 2735f15) Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/383935 Reviewed-by: Robert Findley <rfindley@google.com>
run test
codelens appears but it's not recognized in the Testing UI.We also need to check how Testing UI handles the fuzz test case that looks like dynamically found subtest.
The text was updated successfully, but these errors were encountered: