mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-25 06:22:24 +02:00
Move test goldens to testdata/ directory to be more idiomatic, and add assertion that they're all actively being used by the tests (#154)
* Move golden files to testdata dir * Add assertion that requires that all goldens are used * Add map init so the map is non-nil * Add print to confirm that tests finished running * Remove colon so that this doesn't match against gotestsum looking for the substring "panic:", which can happen depending on how stdout is buffer * Revert "Remove colon so that this doesn't match against gotestsum looking for the substring "panic:", which can happen depending on how stdout is buffer" This reverts commit b44e53a17bb1592e620e77e39b7dab93e8edafcf.
This commit is contained in:
parent
516ee59791
commit
88f1c0168e
2
Makefile
2
Makefile
@ -7,7 +7,7 @@ test:
|
|||||||
|
|
||||||
ftest:
|
ftest:
|
||||||
go clean -testcache
|
go clean -testcache
|
||||||
TZ='America/Los_Angeles' HISHTORY_TEST=1 HISHTORY_SKIP_INIT_IMPORT=1 gotestsum --packages ./... --rerun-fails=0 --format testname -- -p 1 -run "$(FILTER)" -timeout 60m
|
HISHTORY_FILTERED_TEST=1 TZ='America/Los_Angeles' HISHTORY_TEST=1 HISHTORY_SKIP_INIT_IMPORT=1 gotestsum --packages ./... --rerun-fails=0 --format testname -- -p 1 -run "$(FILTER)" -timeout 60m
|
||||||
|
|
||||||
acttest:
|
acttest:
|
||||||
act push -j test -e .github/push_event.json --reuse --container-architecture linux/amd64
|
act push -j test -e .github/push_event.json --reuse --container-architecture linux/amd64
|
||||||
|
@ -53,6 +53,9 @@ func TestMain(m *testing.M) {
|
|||||||
|
|
||||||
// Start the tests
|
// Start the tests
|
||||||
m.Run()
|
m.Run()
|
||||||
|
|
||||||
|
// Teardown
|
||||||
|
testutils.AssertAllGoldensUsed()
|
||||||
}
|
}
|
||||||
|
|
||||||
var shellTesters []shellTester = []shellTester{bashTester{}, zshTester{}}
|
var shellTesters []shellTester = []shellTester{bashTester{}, zshTester{}}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user