jimehbot[bot]
e17b04717f
chore(main): release 0.2.1 ( #15 )
...
Co-authored-by: jimehbot[bot] <132453784+jimehbot[bot]@users.noreply.github.com>
v0.2.1
2025-04-05 12:34:00 +01:00
550ba17fb0
feat(options): add optional Options arguments to New() function ( #14 )
...
Enables simpler creation of custom *Golden instances, as you can just pass in the custom values to New(), rather than modifying fields after increating the Golden instance.
2025-04-05 12:28:57 +01:00
jimehbot[bot]
8a88e5174b
chore(main): release 0.2.0 ( #8 )
...
Co-authored-by: jimehbot[bot] <132453784+jimehbot[bot]@users.noreply.github.com>
v0.2.0
2025-03-24 13:19:39 +00:00
bc86ba7a6d
feat(do): add new Do function to simplify golden usage ( #11 )
...
Add new Do function whihc ecapsulates the common pattern of writing to
golden file if the update mechnism evaluates to true, followed by
immediately reading the file. Compresses four lines into one.
2025-03-24 13:17:17 +00:00
62e8344ff3
feat(interface): use TestingT interface intead of *testing.T in function signatures ( #13 )
2025-03-24 13:04:34 +00:00
e46dc124ff
feat(defaults): expose a Default *Golden instance ( #9 )
...
Also change the Default* constants to variables so they can be modified
as well.
2025-03-24 12:54:29 +00:00
6817ec6101
feat(update): make default GOLDEN_UPDATE env var check case-insensitive ( #10 )
2025-03-24 12:53:34 +00:00
8f4d3d4170
chore(deps/dev): upgrade development dependencies, including golangci-lint ( #12 )
2025-03-24 12:52:20 +00:00
b2112ca475
ci(release): add release-please config and workflow job ( #7 )
2025-03-24 11:36:39 +00:00
27e0134701
doc(readme): fix badges
2025-03-22 02:00:17 +00:00
85ae6e9ae3
feat(go)!: upgrade to Go 1.17 (from 1.15) ( #6 )
...
BREAKING CHANGE: Go 1.17 or later is now required, up from Go 1.15.
2025-03-22 01:37:06 +00:00
f5a03af9ce
ci(deps): update actions and lint config to get them all running again ( #5 )
2025-03-22 01:23:12 +00:00
edb189f086
chore(release): 0.1.0
v0.1.0
2021-10-28 02:25:16 +01:00
905a0c69a9
fix(helper): call t.Helper() from all test helper functions
2021-10-28 02:19:43 +01:00
cbdc529f03
docs(godoc): fix typo refering to SetP functions as Write()
2021-10-27 21:54:41 +01:00
07a145c6f8
docs(readme): another minor formatting fix wording tweak
2021-09-17 02:49:37 +01:00
5d1588cc4d
docs(readme): fix and improve formatting
2021-09-17 02:46:50 +01:00
a19d4efc3b
Merge pull request #1 from jimeh/refactor-things
...
refactor: get closer to "stable"
2021-09-17 02:42:04 +01:00
2059e75911
docs(readme): populate readme with basic details
2021-09-17 02:36:24 +01:00
eee909325d
ci(coverage): add coverage reports via CodeClimate
2021-09-17 02:31:36 +01:00
3185b09d09
refactor(golden): major refactor and improvements
...
This includes sanitizing golden file names to avoid characters and names
which are invalid on some operating systems. So this should now work on
Linux, macOS, and Window.
2021-09-17 02:21:32 +01:00
1d50225ce6
feat(golden): initial commit
2021-09-16 02:46:51 +01:00