Skip to content

any way for yagni to ignore test files? #10

@ags799

Description

@ags799

Hi, really enjoying boot-check, thanks! Yagni is giving me some trouble though. It's failing because of my test functions, which will of course lack any references.

It seems that I can get Yagni to accept these test functions by adding them to its entry-points option. This works, but it doesn't seem too nice: as my repository grows, I'll have many tests and this entry-points list will become quite large.

I have tried

(deftask yagni []
  (set-env! :source-paths #{"src"})
  (tolitius.boot-check/with-yagni "-t" :options {:entry-points ["my.package/-main"]}))

I thought that would work, since my test files are in test/ not src/.

Unfortunately it made no difference: Yagni still reported the tests unreferenced and threw an error.

Would appreciate any advice to resolve this situation. Thanks so much.

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