diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-30 10:30:32 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-30 10:30:32 -0500 |
| commit | e2f373ff05116d4b2ed48d4ddcaea8c47846f105 (patch) | |
| tree | 280ab96bc63af06b69edbb38713983a130637db9 /tests/test-prog-go--format-wiring.el | |
| parent | bb936fc082d4feb6a8759399ae07c840ea386b68 (diff) | |
| download | dotemacs-e2f373ff05116d4b2ed48d4ddcaea8c47846f105.tar.gz dotemacs-e2f373ff05116d4b2ed48d4ddcaea8c47846f105.zip | |
test(prog): drop ignore-errors on prog-module require, add featurep check
Two small tightening passes on the formatter wiring tests just shipped.
Drops `(ignore-errors ...)` from each test file's
`(require 'prog-PKG)' call. Soft use-package warnings (e.g. lsp-pyright
not being installed) still emit messages without aborting the load. A
hard load failure (syntax error, missing required dep) would now
surface as a test error rather than being silently swallowed.
Adds a `(should (featurep PKG))' assertion per language so the test
output makes "package loaded" visible alongside the fboundp and
binding checks. For webdev the assertion is `(featurep 'prog-webdev)'
since the formatter command is defined directly in prog-webdev.el
(it shells out to the prettier CLI, no separate package to load).
17 tests total now (up from 13), all passing.
Diffstat (limited to 'tests/test-prog-go--format-wiring.el')
| -rw-r--r-- | tests/test-prog-go--format-wiring.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test-prog-go--format-wiring.el b/tests/test-prog-go--format-wiring.el index 99d80772..609aea34 100644 --- a/tests/test-prog-go--format-wiring.el +++ b/tests/test-prog-go--format-wiring.el @@ -20,9 +20,13 @@ (require 'testutil-format-wiring) (format-test--ensure-packages-init) -(ignore-errors (require 'prog-go)) +(require 'prog-go) (require 'go-mode) +(ert-deftest test-prog-go-format-package-loaded () + "Normal: `go-mode' is in `features' after the prog-go config loads." + (should (featurep 'go-mode))) + (ert-deftest test-prog-go-format-command-fboundp () "Normal: `gofmt' is fboundp after `go-mode' loads." (should (fboundp 'gofmt))) |
