Commit Graph

7 Commits

Author SHA1 Message Date
Varun Gandhi
8b6f4de3a2
docs: Mention -count for verifying flaky test fixes. (#37065) 2022-06-12 08:55:56 +03:00
Robert Lin
e4cad80a02
doc/dev: testing guidelines update for GN-105 (#30789)
Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr>
2022-02-08 14:29:25 -08:00
Camden Cheek
f9848aa581
move the dbmock package into internal/database (#29199)
I had originally created the `dbmock` package as a separate package
because I thought it provided a nicely readable import path
(dbmock.NewMockDB), and also because it provided a clean separation
between mocks and the code being mocked. However, this meant that
we couldn't use the dbmock package in the database package, which has
been blocking me from getting rid of global mocks entirely.

This just moves the mocks into the database package, so now you'd use it
like database.NewMockDB(), which is maybe actually better IMO because it
corresponds directly to the database.NewDB() function.
2021-12-17 12:38:23 -07:00
Camden Cheek
cef113454f
add docs for testing with a database dependency (#27330)
This adds some docs for my take on current best practices for testing
with a database dependency. I think the dbmock stores have matured enough that
it's worth sharing the new pattern with others, and while I'm at it, I also added
a section that explains dbtest.NewDB(), with some clarification on when to use
each package.
2021-11-10 19:45:25 +00:00
Noah S-C
1246e4353a
efritz/go-mockgen -> derision-test/go-mockgen (#21734) 2021-06-04 13:40:44 +01:00
Eric Fritz
8e87feb095
dev: Update glock (#19153) 2021-03-16 08:05:06 -05:00
Thorsten Ball
6ff28bd6e8
Move development docs from handbook to doc/dev (#18430)
* Move development docs from handbook to doc/dev

* Update codenotify

* Fix broken links

* Move language guides from handbook to here
2021-02-19 12:26:12 +01:00