Skip to content

nos test can only skip whole namespaces, not individual tests #96

Description

@skydread1

Problem

nos test selects tests only at namespace granularity: :namespaces, :exclude, and :re all operate on namespace names. To skip a single test (e.g. one carrying a platform-specific expectation) the only lever is dropping its whole namespace, which discards every passing test alongside it.

Suggestion

Add an :exclude-vars option to the :test config: a vector of fully-qualified deftest symbols. After require and before the run, clear each var's :test meta so clojure.test skips exactly those vars while the rest of their namespace still runs.

{:test {:exclude-vars [my.ns-test/some-test]}}

clojure.test/test-var runs a var only when (:test (meta v)) is truthy, so clearing the meta is enough.

Metadata

Metadata

Assignees

Labels

comp:nostrandC# CLI host and task runner

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions