我有一个码头集装箱运行lein repl :start :host 0.0.0.0 :port 7888
(我也通过-p
开关端口像docker run -p 7888:7888
)。VIM壁炉与码头上的nREPL将不会运行测试
现在,当我切换到vim并连接到REPL时,一切似乎按预期工作。我可以通过cqp
评估代码,并在该泊坞窗机器上进行评估。
但是,当我想通过cpr
组合在测试文件中运行测试时,vim显示它在其状态栏中执行(clojure.test/run-tests 'users.models.users-it-test)
,但没有一个测试真的执行,也没有得到发生情况的报告。我还可以添加任何失败的测试,如
(deftest shouldnt-work
(is (= 3 4))
但不会引发异常。
更奇怪的是:当我执行通过cqp
和测试,那么 (clojure.test/run-tests)
,测试实际上是运行和 正确的/失败的结果打印出来。
我的.vimrc看起来是这样的:
" Plugins
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'danro/rename.vim'
Plugin 'guns/vim-clojure-static'
Plugin 'scrooloose/nerdtree'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'tpope/vim-salve'
Plugin 'tpope/vim-classpath'
Plugin 'tpope/vim-fireplace'
Plugin 'paredit.vim'
call vundle#end()
filetype plugin indent on
" End Plugins
" Add and delete spaces in increments of 'shiftwidth' for tabsb
set smarttab
set number
set tabstop=2
set shiftwidth=2
set expandtab
set noesckeys
syntax on