luontola / gospec Goto Github PK
View Code? Open in Web Editor NEWTesting framework for Go. Allows writing self-documenting tests/specifications, and executes them concurrently and safely isolated. [UNMAINTAINED]
License: Apache License 2.0
Testing framework for Go. Allows writing self-documenting tests/specifications, and executes them concurrently and safely isolated. [UNMAINTAINED]
License: Apache License 2.0
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?
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.