An open API service indexing awesome lists of open source software.

https://github.com/liquidz/vim-iced-kaocha

vim-iced plugin for testing with kaocha
https://github.com/liquidz/vim-iced-kaocha

kaocha vim vim-iced vim-plugin

Last synced: 11 months ago
JSON representation

vim-iced plugin for testing with kaocha

Awesome Lists containing this project

README

          

= 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

* https://github.com/liquidz/vim-iced[vim-iced] (`0.10.4` or later)

== 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.