Skip to content

Could watch also reload local deps? #23

@msolli

Description

@msolli

Hi, and thanks for Lazytest, really enjoying it!

I'm running with watch mode, and noticed that my tests wouldn't re-run when the implementation ns changed. I have a Polylith project, and it requires that "components" are included using :extra-deps (in the :dev alias), but test are included using :extra-paths in the :test alias.

I went and looked at the code, and it seems every path on the classpath that is an absolute path is removed from the list of dirs to be watched: https://github.com/NoahTheDuke/lazytest/blob/main/src/clojure/lazytest/watch.clj#L19

I don't have the whole picture, but would it be possible to not remove these absolute paths? It would solve the issue for me, at least, because code in my :extra-deps would be eligible for reloading.

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