4 ms·
In Go's standard library there is a basic QuickCheck facility. But apparently it has only been imported by 20 opensource packages ever (see bottom of page): ht
by frou_dh 9y ago
In Go's standard library there is a basic QuickCheck facility. But apparently it has only been imported by 20 opensource packages ever (see bottom of page):
https://godoc.org/testing/quick https://godoc.org/testing/quick
- sethammons 9y agoWe've used it in at least one internal project. I found it to lessen readability and make maintenance harder. It could be the way things were set up. I like the basic idea, but that lib just wasn't doing it for me. We got close to something usable with test case generators where you replaced the intended bad value(s). There ended up being too much indirection for my taste for too little reward.
- frou_dh 9y agoActually, that 20 number probably relates to oddball uses of it outside of *_test.go files. Adoption in tests is likely decent after all.