Skip to content

Babashka run-tests-in-file-tree! throws: No implementation of method: :getName of protocol: #'sci.impl.types/HasName #17

@matthewdowney

Description

@matthewdowney

I went to add a test runner task to a babashka project with a bb.edn file that looks like:

{:paths ["src"]
 :deps  {io.github.matthewdowney/rich-comment-tests {:git/tag "v1.0.0" :git/sha "73b0863"}}
 :tasks {test {:requires ([com.mjdowney.rich-comment-tests.test-runner :as rct])
               :task (rct/run-tests-in-file-tree! {:dirs #{"src"}})}}}

And the test-runner namespace threw:

$ bb test

Running rich-comment-tests in #{src}
com.mjdowney.tfmt
----- Error --------------------------------------------------------------------
Type:     java.lang.IllegalArgumentException
Message:  No implementation of method: :getName of protocol: #'sci.impl.types/HasName found for class: clojure.lang.Symbol
Location: /home/matthew/rich-comment-tests/src/com/mjdowney/rich_comment_tests/test_runner.clj:72:11

----- Context ------------------------------------------------------------------
68:         ; Run tests for the namespace by calling `run-file-tests!` with each
69:         ; associated file
70:         (doseq [[ns files] ns->fs]
71:           (println ns)
72:           (test/do-report {:type :begin-test-ns :ns ns})
              ^--- No implementation of method: :getName of protocol: #'sci.impl.types/HasName found for class: clojure.lang.Symbol

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions