Fork me on GitHub
#testing
<
2017-11-14
>
Diego06:11:26

Hey guys, I am a bit new to Clojure, and have been doing some stuff with tests. However I ran into the problem that if I comment a test in order to skip it, it nevertheless keeps running. I am using Emacs (also a noob at this) and Cider. Any ideas about what I am doing wrong?

jumar07:11:09

@diego.vid.eco can you show the code? Also, how do you run your tests?

donaldball12:11:19

Simply commenting the deftest form and reevaluating doesn’t remove the test var from the namespace, so when you run all tests, it will still run. You may want to try commenting out the form inside the deftest so the test reevaluates with no implementation.

jakemcc16:11:15

@diego.vid.eco You’ll lose REPL state, but another option is to use cider-refresh.

Diego17:11:08

Cool, thanks guys! I´ll try both options