Giter Site home page Giter Site logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024

Original comment by [email protected] on 5 Jun 2011 at 6:49

  • Changed state: Accepted

from goclipse.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 24, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.