Re: [go-nuts] Testing specific file in a package

2024-07-02 Thread Victor Manuel “Vitu” Giordano
Thanks Arkadiusz. Good tip. El domingo, 30 de junio de 2024 a las 16:38:44 UTC-3, Arkadiusz Drabczyk escribió: > On Sat, Jun 29, 2024 at 11:14:56AM -0300, Victor Manuel Giordano wrote: > > Thank you all for the feedback. It is appreciated. > > > > • So it is not possible via the golang

Re: [go-nuts] Testing specific file in a package

2024-06-30 Thread Arkadiusz Drabczyk
On Sat, Jun 29, 2024 at 11:14:56AM -0300, Victor Manuel Giordano wrote: > Thank you all for the feedback. It is appreciated.  > > • So it is not possible via the golang platform native capabilities...  It is as described in the second part of this answer

Re: [go-nuts] Testing specific file in a package

2024-06-29 Thread Victor Manuel Giordano
Thank you all for the feedback. It is appreciated. - *So it is not possible via the golang platform native capabilities... * - The Visual Studio Code (IDE) offers a good feature building on top of the -run flag - It parses the file to test, recovers all the test function names of

Re: [go-nuts] Testing specific file in a package

2024-06-29 Thread Marcello H
You can look at how your IDE would do it, or, you can put a build tag in and only test that build tag Op zaterdag 29 juni 2024 om 03:37:28 UTC+2 schreef Kurtis Rader: > On Fri, Jun 28, 2024 at 3:25 PM Victor Manuel “Vitu” Giordano < > vituc...@gmail.com> wrote: > >> I struggle with performing

Re: [go-nuts] Testing specific file in a package

2024-06-28 Thread Kurtis Rader
On Fri, Jun 28, 2024 at 3:25 PM Victor Manuel “Vitu” Giordano < vitucho3...@gmail.com> wrote: > 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 > #

Re: [go-nuts] Testing specific file in a package

2024-06-28 Thread Ian Lance Taylor
On Fri, Jun 28, 2024 at 3:25 PM Victor Manuel “Vitu” Giordano wrote: > > 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

[go-nuts] Testing specific file in a package

2024-06-28 Thread Victor Manuel “Vitu” Giordano
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: