Re:My Go Resolutions for 2017
by kibwen on Wednesday January 18, 2017 @01:45PM
(#13429062)
From reading https://bazel.build/versions/master/docs/test-encyclopedia.h... , it looks like Bazel's rules are quite strict (not to mention Unix-specific), and requires writing a separate rules file to configure test behavior (e.g. an "external" tag to denote tests that cannot be cached). I anticipate that it would be difficult to retrofit such things onto Go's existing ecosystem in-place (or any language's, for that matter), especially without sacrificing Go's minimalist philosophy (i.e. "this function is a test if its identifier begins with `Test`, end of story"), especially considering Go's documented aversion to config files WRT package management.
As an optional external tool it may work quite nicely, however.
Re:My Go Resolutions for 2017
by zaphar on Wednesday January 18, 2017 @11:15PM
(#13432959)
Bazel's rules are extremely strict. For what it's worth when I was at Google all the Go code was built with Bazel. Most of the google engineers don't experience this pain internally I imagine.
As an optional external tool it may work quite nicely, however.