Comments (9)
Can you send me a zip of simple project with gotest makefile?
Original comment by [email protected]
on 3 Jun 2011 at 3:08
from goclipse.
Here it is. Gotest usage (if you get a FAIL from gotest don't worry, it is
desired behavior):
cd path/to/factorial/src/pkg/factorial
gotest
The problem is that gotest is usually run in the package directory
(src/pkg/package_name) and expects the Makefile in the same folder.
See also: <http://golang.org/cmd/gotest/>, <http://golang.org/doc/code.html>
Original comment by [email protected]
on 4 Jun 2011 at 11:01
Attachments:
from goclipse.
Original comment by [email protected]
on 5 Jun 2011 at 6:49
- Changed state: Accepted
from goclipse.
What about recreating the logic of gotest in eclipse, so we can get rid of
those makefiles.
Original comment by ungerik
on 6 Jul 2011 at 1:37
from goclipse.
I added the _testmain.go file generated by gotest in the cmd directory. But
since *_test.go files are ignored by goclipse, I renamed my util_test.go to
util_test_.go . So my testing environment is not too far from gotest and I
could change it easily when gotest will be integrated or simulated in goclipse.
Note: AFAIK gotest doesn't work yet with local packages. (I mean without
creating a specific MakeFile)
Original comment by [email protected]
on 9 Jul 2011 at 7:03
from goclipse.
Update: latest Go weekly builds don't require custom makefiles for tests. They
can be simply invoked by
go test <full_package_name_in_GOPATH>
Original comment by [email protected]
on 10 Feb 2012 at 6:16
from goclipse.
As a result of Go 1, we just need a way to create a run configuration that
invokes 'go test <pkg>'. This is necessary in order to debug failing tests.
Original comment by [email protected]
on 28 Jul 2012 at 4:13
from goclipse.
Also, auto builds should (optionally) build the test binary. That way you can
see errors as you code in test files as well as regular files.
Original comment by [email protected]
on 1 Sep 2012 at 1:37
from goclipse.
Since the test files ARE go code files alos they have to be compiled during
auto-build. Otherwise the integrity of the project is lost.
Original comment by eryzhikov
on 29 Jan 2013 at 1:07
from goclipse.
Related Issues (20)
- Gocode Plugin failed to kill gocode process on Windows XP home Edition
- Can't use imported packages HOT 2
- Build Errors Don't Stop Execution HOT 1
- Unchecking "Start Gocode server automatically" has no effect HOT 1
- Let Go projects being created in arbitrary directories
- Handle Go line directives correctly
- Build produce no output in Console HOT 3
- No automatic indentation
- Error with documentation popup
- Not compiling on save HOT 2
- Go uses weird date format (probably US, or iranian) HOT 2
- Linked folders cause project name to be prepended to file paths, causing Resource Not Found stack traces. HOT 1
- External Packages Aren't Added to Pkg Directory
- ctrl-clic can show to wrong function
- Debugging: adding a breakpoint results in -break-insert error messages from gdb into the console HOT 1
- UTF-8 chinese character GoCode
- Content assist does not work for some source code file HOT 1
- Create markers when formatting fails HOT 2
- unexpected char: }
- .exe file doesn't exist HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goclipse.