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
- Host: GitHub
- URL: https://github.com/liquidz/vim-iced-kaocha
- Owner: liquidz
- License: mit
- Created: 2019-04-24T13:48:18.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-17T21:24:22.000Z (almost 6 years ago)
- Last Synced: 2025-06-29T00:50:20.412Z (12 months ago)
- Topics: kaocha, vim, vim-iced, vim-plugin
- Language: Vim script
- Homepage:
- Size: 15.6 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
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.