Skip to content

feat(nostrand): skip individual deftests via :exclude-vars#97

Merged
skydread1 merged 1 commit into
developfrom
feat/nos-test-exclude-vars
Jul 24, 2026
Merged

feat(nostrand): skip individual deftests via :exclude-vars#97
skydread1 merged 1 commit into
developfrom
feat/nos-test-exclude-vars

Conversation

@skydread1

Copy link
Copy Markdown
Member

Closes #96

  • Add :exclude-vars to the :test config: a vector of fully-qualified deftest symbols whose :test meta is cleared after require, so clojure.test skips exactly those vars and still runs the rest of their namespace.
  • Thread it through run-clojure-tests, the test task, and the ::test spec (a qualified-symbol? vector). An unresolvable symbol warns without aborting the run.
  • Document the option in docs/porting-libraries-to-magic.md.

nos test selected tests only by namespace (:namespaces/:exclude/:re), so
skipping one platform-specific test meant dropping its whole namespace.
:exclude-vars names fully-qualified deftest vars whose :test meta is cleared
after require, so clojure.test omits exactly those and still runs the rest.
@skydread1 skydread1 self-assigned this Jul 24, 2026
@skydread1
skydread1 merged commit d21597a into develop Jul 24, 2026
1 check passed
@skydread1
skydread1 deleted the feat/nos-test-exclude-vars branch July 24, 2026 01:33
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.

nos test can only skip whole namespaces, not individual tests

1 participant