Fork me on GitHub
#cider
<
2022-11-29
>
George01:11:55

I have a repl running and loaded my clj source named coder.clj, and loaded the test files named coder_test.clj, however when I run C-c C-t l I get "No assertions (or no tests) were run.Did you forget to use β€˜is’ in your tests?"

George01:11:26

The test file looks like (ns alphabet-cipher.coder-test (:require [clojure.test :refer :all] [alphabet-cipher.coder :refer :all])) (deftest test-encode (testing "can encode a message with a secret keyword" (is (= "hmkbxebpxpmyllyrxiiqtoltfgzzv" (encode "vigilance" "meetmeontuesdayeveningatseven"))) (is (= "egsgqwtahuiljgs" (encode "scones" "meetmebythetree")))))

George01:11:57

running the test at point with C-c C-t t does work

George01:11:09

any idea why the run loaded tests isn't working?

George01:11:14

also C-c C-t n does work

vemv02:11:13

it could be because the test dir isn't in your classpath? It's a common pitfall, especially for deps.edn users

πŸ‘ 1
George06:11:42

yep that was it, the project was assuming I would run the tests in the CLI, thanks for the tip

🍻 1
pieterbreed08:11:59

Is there a way to suppress the prompt for cljs that says Visit ':xxxx' in a browser? (y or n) ?