Skip to content

Use :check-paths in check task if specified #2804

@vemv

Description

@vemv

Hi there!

Becase check.clj checks only :source-paths, it is not intuitive to make lein check also check test/ namespaces.

(One might have guessed that with-profile +test would work - but nope)

A simple fix would seem to also honor :test-paths if the test profile is active.

(Note that always enabling it might fail, since the :test profile can add :dependencies otherwise absent)

There's the workaround of adding :profiles {:test {:source-paths ["test"]}} but if feels pretty wrong.

Cheers - V

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions