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

Does goconvey support executing goconvey without inline? #683

Open
HuLing1025 opened this issue Nov 29, 2023 · 2 comments
Open

Does goconvey support executing goconvey without inline? #683

HuLing1025 opened this issue Nov 29, 2023 · 2 comments

Comments

@HuLing1025
Copy link

Iike below, this is code intrusion when I stub functions in my project. Is there any way to exec web UI command goconvey gracefully?

//go:noinline
func GetResult(d Demo) string {
	if d.GetMsg() == "store" {
		return "success"
	}
	return "failure"
}

The official way:

 go test -gcflags=all=-l
@HuLing1025
Copy link
Author

I solved the problem by adding the following code, then rebuilding, and then replacing the goconvey.exe file in the bin directory.

// web/server/system/shell.go runWithCoverage
arguments = append(arguments, "-gcflags=all=-l")

@DraftTin
Copy link

DraftTin commented Jun 24, 2024

I edited the source file and ran go install github.com/smartystreets/goconvey. It didn't work for me.

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

2 participants