我有一個碼頭集裝箱運行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