Skip to content

Actually run the static completion test suite#55

Merged
bbatsov merged 1 commit into
masterfrom
run-static-completion-tests
Jul 12, 2026
Merged

Actually run the static completion test suite#55
bbatsov merged 1 commit into
masterfrom
run-static-completion-tests

Conversation

@bbatsov

@bbatsov bbatsov commented Jul 12, 2026

Copy link
Copy Markdown
Member

The static ClojureScript completion tests (formerly t_cljs.clj) never ran in CI - the test-runner only matches *-test namespaces, and this one was named t-cljs from the old t_ convention. Renaming it to cljs_test.clj pulls its 15 tests / 68 assertions into every run.

Running them for the first time surfaced two stale expectations: completing foo in the test ns also matches the local foo def, not just the referred foo-in-dep. I tightened those prefixes to foo-in so each test stays focused.

No production code changes - this is purely getting the existing suite to actually execute.

The tests in what was src/test/suitable/compliment/sources/t_cljs.clj
never ran in CI: the cognitect test-runner only picks up namespaces
matching #".*-test$", and this one was named ...t-cljs (the old t_
convention). Renaming it to cljs_test.clj brings its 15 tests / 68
assertions into every run.

Two of those tests had stale expectations (they'd never been executed):
completing "foo" in the test ns also matches the local `foo` def, not
just the referred `foo-in-dep`. Tightened the prefix to "foo-in" so
each test stays focused on the referred var it's exercising.
@bbatsov bbatsov merged commit ac6e331 into master Jul 12, 2026
8 of 9 checks passed
@bbatsov bbatsov deleted the run-static-completion-tests branch July 12, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant