cweill / gotests

Automatically generate Go test boilerplate from your source code.
Apache License 2.0
4.93k stars 346 forks source link

No tests generated for my path #134

Open robtrooper opened 4 years ago

robtrooper commented 4 years ago

I'm running the following expecting it to generate a test file as oppose to getting stdout /home/rob/go/bin/gotests -all -w /home/rob/Projects/Go/testme

The first time it said Generated Test_main But it didn't create a test file. I ran the same command again but then it said No tests generated for /home/rob/Projects/Go/testme Subsequent commands give me No tests generated.

There doesn't appear to be a file generated in any of the paths that i could find. Nor could it repeat the first Generated Test_

I'm not using any of the plugins, i wish to use the command line to test this out but i'm not getting what i expect.

Edited to add I found the tests in the folder (eg main_test) but they were not named as the cli output suggests, leaving the user confused as to what happened. Maybe make the cli output match what was created? If i already have a file main_test then the command will not create a file.