clojure.vim icon indicating copy to clipboard operation
clojure.vim copied to clipboard

Add unit tests

Open Deraen opened this issue 4 years ago • 2 comments

Unit tests could help especially with the indent fn. There are probably a few cases broken currently: https://github.com/guns/vim-clojure-static/pull/83

Not sure how these are usually done with Vimscript.

We could probably copy test cases from some other project for a start: https://github.com/clojure-emacs/clojure-mode/blob/master/test/clojure-mode-indentation-test.el https://github.com/weavejester/cljfmt/blob/master/cljfmt/test/cljfmt/core_test.cljc#L11

Deraen avatar Sep 11 '20 17:09 Deraen

The clojure code here already implements unit tests:

https://github.com/clojure-vim/clojure.vim/blob/master/clj/src/vim_clojure_static/test.clj https://github.com/clojure-vim/clojure.vim/blob/master/clj/test/vim_clojure_static/indent_test.clj

We should setup CI to run these.

Deraen avatar Dec 29 '20 09:12 Deraen

Github actions configured in #4

Deraen avatar Dec 29 '20 12:12 Deraen