vim-iced-kaocha


Ⅰ. 插件描述

vim-iced plugin for testing with kaocha

Ⅱ. 基本信息

创建日期:  2019-04-24
使用用户:  1
Github星:  1
插件作者:  Iizuka Masashi

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'liquidz/vim-iced-kaocha'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'liquidz/vim-iced-kaocha'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'liquidz/vim-iced-kaocha'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/liquidz/vim-iced-kaocha

Ⅳ. 文档说明

= vim-iced-kaocha
:toc:
:toc-placement: preamble
:toclevels: 2

// Need some preamble to get TOC:
{empty}

https://github.com/liquidz/vim-iced[vim-iced] plugin for testing with https://github.com/lambdaisland/kaocha[kaocha].
This plugin is powered by https://github.com/liquidz/kaocha-nrepl[liquidz/kaocha-nrepl].

image:https://img.shields.io/badge/vim--iced-plugin-blue.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgICAgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiCiAgICAgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiCiAgICAgdmlld0JveD0iMTAsMTAsODAsODAiPgogIDxwb2x5Z29uIGZpbGw9IiNCM0U1RkMiIHBvaW50cz0iNTAsMTAgMTAsNTAgMzAsNzAgMjAsNTAiLz4KICA8cG9seWdvbiBmaWxsPSIjOTBDQUY5IiBwb2ludHM9IjUwLDEwIDMwLDUwIDMwLDcwIDU1LDUwIi8+CiAgPHBvbHlnb24gZmlsbD0iIzgxRDRGQSIgcG9pbnRzPSI1MCwxMCA3MCw3MCA5MCw1MCIvPgogIDxwb2x5Z29uIGZpbGw9IiM2NEI1RjYiIHBvaW50cz0iNjAsNjAgMzAsNzAgNTAsOTAgNzAsNzAiLz4KPC9zdmc+Cg==["vim-iced plugin", link="https://github.com/liquidz/vim-iced"]
image:https://img.shields.io/badge/patreon-donate-yellow.svg?logo=Patreon["Become a Patron", link="https://www.patreon.com/uochan"]

WARNING: This project is under development.

== Requirements

== Command

  • :IcedKaochaTest
  • :IcedKaochaTestUnderCursor
  • :IcedKaochaTestNs
  • :IcedKaochaTestAll
  • :IcedKaochaTestRedo
  • :IcedKaochaTestRerunLast

For more information, see link:doc/vim-iced-kaocha.txt[help file].

== Installation

=== vim-plug

[source,vim]

Plug 'liquidz/vim-iced', {'for': 'clojure'}

Plug 'liquidz/vim-iced-kaocha'

=== iced command

To enable kaocha-nrepl middleware, please specify --dependency and --middleware option.

image:https://img.shields.io/clojars/v/kaocha-nrepl.svg["Clojars Project", link="https://clojars.org/kaocha-nrepl"]


$ iced repl --dependency=kaocha-nrepl:0.1.1 --middleware=kaocha-nrepl.core/wrap-kaocha

== Usage

=== clojure.test

No extra dependencies are required.
Run iced command with above options, and execute providing commands.

=== Midje

link:https://github.com/marick/Midje[midje/midje] and link:https://github.com/lambdaisland/kaocha-midje[lambdaisland/kaocha-midje] are required.

[WARNING]

kaocha-midje 0.0-5 will run fasts every Load part in kaocha. +

This behavior may fix next version. link:https://github.com/lambdaisland/kaocha-midje/pull/1[#1]

[source,clojure]

.project.clj

{:dependencies [[lambdaisland/kaocha-midje "0.0-5"

             :exclusions [midje/midje]]
            [midje/midje "1.9.6"]]}

[source,clojure]

.tests.edn

kaocha/v1

{:tests [{:id :unit

      :type :kaocha.type/midje

      ;; OPTIONAL. default value is "test"
      :test-paths ["test"]
      ;; OPTIONAL. default value is ".*-test"
      :ns-patterns [".*"]
      }]}

== License

Copyright (c) 2019 http://twitter.com/uochan[Masashi Iizuka].

Distributed under the MIT License.

添加新评论