I actually have a similar request. I have an application that I want to 
test with integration tests and right now there's no real way to get 
coverage except by running everything using a unit test launcher.

On Wednesday, January 9, 2019 at 6:22:23 AM UTC-8, Ian Lance Taylor wrote:
>
> On Tue, Jan 8, 2019 at 11:52 PM <durgasomes...@gmail.com <javascript:>> 
> wrote: 
> > 
> > I have creates all my test files in a separate single folder. Is it 
> possible to get code coverage as the source files are in different location 
> not with test files. 
> > I am getting code coverage report with coverprofile when  test files and 
> source are in same location. 
> > 
> > Here I was running all the test files with  a make file for sequential 
> execution of test files as I have some dependency from one file to another 
> file. 
>
> Tell us exactly what you did, tell us exactly what happened, and tell 
> us what you expected to happen instead. 
>
> I'm not sure but perhaps you want to use the -coverpkg option to go test. 
>
> Ian 
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to