Hi guys! How you are doing?

I struggle with performing all the tests written in a file that requires 
symbols defined on other files of the same package.

For example
$ go test practice_resource_test.go
# command-line-arguments [command-line-arguments.test]
./practice_resource_test.go:11:12: undefined: PracticeResource
./practice_resource_test.go:12:12: undefined: PracticeResource
FAIL command-line-arguments [build failed]
FAIL

The symbol PracticeResource is defined in a file called practice_resource 
present at the same package.

¿Is it possible to archieve this? If anyone know how  and can explain me I 
will appreciate that.
Thanks in advance.

I haven't see how to do it in the official doc <https://pkg.go.dev/testing> 
and in other doc 
<https://www.brandongreeley.com/selectively-running-tests-in-go/> as well.
Greetings.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c42caa82-45fa-45b8-8d10-d47c219f0063n%40googlegroups.com.

Reply via email to