15 Commits

Author SHA1 Message Date
Peter Bourgon
90a0286909 Refactor tests to have appropriate packages
By default, tests should be in package pkg_test. If they need to test
package internals, they can be in package pkg, but then should carry a
suffix of foo_internal_test.go.

This changeset enforces that idiom across the codebase, and adds a check
to the linter to make sure it remains.

Also, some fixes to comments.
2015-06-29 18:06:44 +02:00
Tom Wilkie
3daea81890 Merge pull request #252 from tomwilkie/208-test
Don't calculate coverage metrics in bin/test by default.
2015-06-17 18:35:59 +02:00
Tom Wilkie
48a75cdc76 Don't caclulate coverage metrics in bin/test by default. 2015-06-17 14:57:36 +00:00
Tom Wilkie
617106829a Add simple spellchecking to linter. 2015-06-17 10:16:43 +00:00
Peter Bourgon
dcb23a517a bin/release: fix sed invocation 2015-06-15 12:49:47 +02:00
Tom Wilkie
bd9865f217 Introduce ./bin/test -slow, run by circle. Allow developers to run faster tests. 2015-06-10 15:54:09 +00:00
Tom Wilkie
20618a16c7 Start testing with the race detector. 2015-06-08 15:01:01 +00:00
Tom Wilkie
b858f76a40 Ignore releases/ directory. 2015-06-02 16:03:07 +00:00
Tom Wilkie
2d430895e3 Plumbing for releases stolen straight from weave. 2015-06-01 15:17:32 +00:00
Tom Wilkie
924c8b84e6 Add errcheck to our bin/test script (doesn't fit well with lint) 2015-05-26 15:43:17 +00:00
Tom Wilkie
f11168c051 Make bin/test download test dependancies. 2015-05-22 15:02:36 +00:00
Tom Wilkie
4c3912edf0 Add lint script; run it on circle. Intentionally don't lint static.go. 2015-05-19 10:43:04 +00:00
Peter Bourgon
578b6dfcba Don't test experimental stuff 2015-05-19 10:05:05 +00:00
Peter Bourgon
2ba9dab7bd integration: becomes experimental; remove support in bin/test 2015-05-19 10:05:05 +00:00
Tom Wilkie
4598d37ecd Add circle ci config and test script. 2015-05-19 10:05:04 +00:00