testing

Testing tools, testing philosophy & methodology...
2017-11-14T06:28:26.000206Z

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?

jumar 2017-11-14T07:31:09.000179Z

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

donaldball 2017-11-14T12:44:19.000142Z

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.

jakemcc 2017-11-14T16:10:15.000341Z

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

2017-11-14T17:41:08.000118Z

Cool, thanks guys! I´ll try both options