Skip to content

Test naming inconsist with function naming. #255

Open
@Tillaert

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.

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