GoClipse / goclipse

Eclipse IDE for the Go programming language:
http://goclipse.github.io/
Eclipse Public License 1.0
841 stars 290 forks source link

How to run a Unit Test for GO like Junit for JAVA #248

Closed smfaizalkhan closed 7 years ago

smfaizalkhan commented 7 years ago

Before submitting an issue:

When i execute it it says "can't load package: package .: no buildable Go source files in /home/faizal/workspace/Sample"

But i have the Go files in the folder /home/faizal/workspace/Sample/src/main/goods_inspection.go

Please Let me what is the mistake am i doing ?

bruno-medeiros commented 7 years ago

Hum, it might be because you need to configure the GOPATH environment variable (in Environment tab).

The External Tool Configuration launches have no knowledge of Goclipse project configuration, so you will have to specify the same GOPATH environment variable as you have in the Goclipse/Go project.