Skip to content

Test naming inconsist with function naming. #255

Description

@Tillaert

The guide advises to name tests:

(deftest foo-test ...)

But functions as

(defn foo ...)

Shouldn't it be:

(defn foo-function ...)

to be consistent?

However, there is no need postfix testnames with -test, since the tests are marked in their meta-data, and the test runner can locate them this way. Clojure does not locate tests by name, such as is the case in Python and Javascript, for example, where this is required.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions