This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-19
Channels
- # adventofcode (44)
- # announcements (2)
- # aws (9)
- # beginners (166)
- # braveandtrue (16)
- # calva (170)
- # cider (14)
- # cljdoc (9)
- # cljs-dev (4)
- # cljsrn (1)
- # clojars (1)
- # clojure (150)
- # clojure-dev (15)
- # clojure-europe (4)
- # clojure-india (3)
- # clojure-italy (93)
- # clojure-nl (18)
- # clojure-serbia (1)
- # clojure-spec (5)
- # clojure-uk (45)
- # clojurescript (54)
- # cursive (19)
- # data-science (8)
- # datomic (83)
- # emacs (6)
- # events (1)
- # hoplon (3)
- # hyperfiddle (3)
- # jobs (6)
- # jobs-discuss (1)
- # klipse (1)
- # lein-figwheel (6)
- # leiningen (15)
- # lumo (1)
- # nrepl (1)
- # pedestal (15)
- # re-frame (48)
- # reagent (4)
- # reitit (2)
- # remote-jobs (1)
- # rum (2)
- # shadow-cljs (111)
- # spacemacs (10)
- # sql (16)
- # testing (10)
- # tools-deps (5)
👋 Hi all, I’ve forked eftest to attempt to add a feature, but I’m having trouble getting eftest’s tests to pass. And I mean, on current master. I don’t see any guidance in the README on running eftest’s tests, so given that I’m pretty rusty with Leiningen I wonder whether I’m missing something… is it generally sufficent to just clone a repo, cd
to wherever a project.clj
file is, and then run lein test
?
The specific Leiningen project I’m testing is here: https://github.com/weavejester/eftest/tree/master/eftest
@aviflax This failure
FAIL in (file-and-line-in-pretty-fail-report) (report_test.clj:42)
expected: (= (str "\nFAIL in eftest.report-test/file-and-line-in-pretty-fail-report" " (report_test.clj:999)\n" "foo\n" "expected: " pretty-nil "\n actual: " pretty-nil "\n") result)
actual: (not (= "\nFAIL in eftest.report-test/file-and-line-in-pretty-fail-report (report_test.clj:999)\nfoo\nexpected: nil\n actual: nil\n" "\nFAIL in (report_test.clj:999)\nfoo\nexpected: nil\n actual: nil\n"))
(the other two seem to be "expected" failures, based on the test names)
Looks like it's failing to bind report/*testing-path*
I added that to the binding
call in that test and it passes.
Specifically, I added
(def my-ns *ns*)
just above that test (to capture the compilation namespace) and report/*testing-path* [my-ns #'file-and-line-in-pretty-fail-report]
into the binding
call.