Giter VIP home page Giter VIP logo

gospec's People

Contributors

luontola avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gospec's Issues

can not print when the case success

about "Use the -print-all parameter to print a list of all specs: go test -print-all Otherwise only the failing specs are printed"

i find it does not work if i print "go test tester -print-all"

my example like this:
package hello

import (
"gospec"
"testing"
"fmt"
)

func TestAllSpecs(t *testing.T) {
fmt.Println("testing")
r := gospec.NewRunner()
r.AddSpec(HelloSpec)
gospec.MainGoTest(r, t)
}

anything wrong?

GoSpec not building as at 2011-03-14T10:48

I am running Go tip (as at 2011-03-14T10:48 this is 7754:cb96564f5925 in my repository). I have a clone of GoSpec and using release (cd174f4) I get a compilation error:

|> make install  
cd gospec && make install  
make[1]: Entering directory `/home/Checkouts/Git/Git/GoSpec/src/gospec'  
6g -o _go_.6 context.go error.go funcname.go location.go main.go matchers.go printer.go print_format.go recover.go results.go runner.go specification.go  
matchers.go:308: multiple-value ch.Recv() in single-value context  
matchers.go:309: ch.Closed undefined (type *reflect.ChanValue has no field or method Closed)  
make[1]: *** [_go_.6] Error 1  
make[1]: Leaving directory `/home/Checkouts/Git/Git/GoSpec/src/gospec'  
make: *** [gospec.install] Error 2  

Make *testing.T object available from inside spec functions

I've hit a hiccup trying to use gomock w/ gospec b/c creating a gomock controller requires access to the testing object that go usually passes in to tests. Ideally there'd be a way to get access to the lower level testing object from within the spec functions, possibly as a method call on the context object.

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.