Comments (11)
Oh.. Emidje is cool.
clojure-emacs/cider@030847d
https://github.com/nubank/emidje
from vim-iced.
I'm working with following projects.
from vim-iced.
@devth Thank you for your proposal!
vim-iced uses cider-nrepl
for testing, and cider-test requires clojure.test
protocol.
Unless midje does not provide this protocol, it is difficult to support midle unfortunately.
c.f. marick/Midje#356
BTW you can run midje tests by simply evaluating facts
or fact
form with <Leader>et
or <Leader>ee
.
from vim-iced.
Wow, marick/Midje#356 is a sad state of affairs! Thank you for linking that. Instead I will use something like:
autocmd FileType clojure nmap <buffer> ctm :IcedEval (require 'midje.repl)(midje.repl/load-facts *ns*)<cr>
to run my Midje tests. 💥
from vim-iced.
I'd love to test it out when ready.
from vim-iced.
@devth I'm ready!
Could you try to test vim-iced-kaocha?
https://github.com/liquidz/vim-iced-kaocha
As an attention, kaocha-midje 0.0-5 will run facts every loading facts part in kaocha.
This behavior may fix next version of kaocha-midje.
lambdaisland/kaocha-midje#1
from vim-iced.
I followed the instructions but when I try commands like :IcedKaochaTestNs
I get this in my status bar:
: Ran 0 assertions, in 0 test functions. 0 failures, 0 errors.
IcedKaochaTestUnderCursor
gives me:
Failed to fetch fact's guid.
And in the stdout buffer it prints
Syntax error (ClassNotFoundException) compiling at (duckling.clj:5:19).
midje.repl
I'm trying it out on https://github.com/yetibot/yetibot.core/blob/graphql-history-enhancements/test/yetibot/core/test/commands/duckling.clj#L11
🤔
from vim-iced.
@devth Thanks for your testing!
:IcedKaochaTestNs I get this in my status bar
kaocha has a ns-patterns
configuration, and its default value is .*-test
.
So you should specify ns-patterns
to your tests.edn.
I added sample configuration to README
liquidz/vim-iced-kaocha@eff2786
IcedKaochaTestUnderCursor gives me:
Sorry! I fixed the problem!
liquidz/vim-iced-kaocha@7966f33
Could you try again?
from vim-iced.
Thanks! It's working now. In stdout buffer I see:
;;
;; Iced Buffer
;;
Run `(doc midje)` for Midje usage.
Testing: :unit
Testing ns(1/1): :yetibot.core.test.commands.duckling
Testing fact(1/5): :yetibot.core.test.commands.duckling/2b30d65b69ad9d10701d1665c27980218fa7ef8a
Testing fact(2/5): :yetibot.core.test.commands.duckling/5326df84da81988d89b9db289a00e321e6846242
Testing fact(3/5): :yetibot.core.test.commands.duckling/54d2df800d3ff4d269b4d19c5265d3a851dba36f
Testing fact(4/5): :yetibot.core.test.commands.duckling/0aa8c8b5cb91f34aa9cce49052dc6cb32115dd22
Testing fact(5/5): :yetibot.core.test.commands.duckling/187c7e68b638ba7700ac61736a8cef67209cc85e
Run `(doc midje-repl)` for descriptions of Midje repl functions.
Testing: :unit
Testing ns(1/1): :yetibot.core.test.commands.duckling
Testing fact(1/1): :yetibot.core.test.commands.duckling/0aa8c8b5cb91f34aa9cce49052dc6cb32115dd22
true
Testing: :unit
Testing ns(1/1): :yetibot.core.test.commands.duckling
Testing fact(1/1): :yetibot.core.test.commands.duckling/0aa8c8b5cb91f34aa9cce49052dc6cb32115dd22
- I noticed it's a little slow. To run
:IcedKaochaTestUnderCursor
takes several seconds, but if I simply evaluate thefact
form it's only a few 100ms. - I wonder how I can improve the output. I'll investigate Midje's reporting features.
from vim-iced.
I noticed it's a little slow.
kaocha-midje 0.0-5 reloads target namespace every testing, and this may be the cause.
https://github.com/lambdaisland/kaocha-midje/pull/1/files#diff-0431c434b89da394419452f13f8d40c3L34
The next version of kaocha-midje may improve speed.
I wonder how I can improve the output.
Currently output format is fixed.
If you have a customization idea, please open a issue to vim-iced-kaocha repository.
from vim-iced.
Closed by stale issue.
Feel free to reopen this issue 😃
from vim-iced.
Related Issues (20)
- Cannot evaluate reader conditionals correctly with IcedEvalOuterTopList HOT 3
- Revert #423 for now HOT 1
- Add support for vitual text in vim HOT 1
- QUESTION: cancel/abort evaluation or tests HOT 2
- Unable to eval or run tests when namespace is camelCase HOT 7
- Add support for evaluation in context like CIDER HOT 11
- Add documents about debugging vim-iced itself
- clj-kondo analysis path should be configurable HOT 8
- Spinner keeps spinning with iced_eval (neovim) HOT 5
- Exceptions thrown in tests cause an error HOT 11
- Neovim 0.8.0: popup window never closes HOT 5
- How to close the test-buffer manually? HOT 2
- Close documentation popup window HOT 4
- iced repl throws exception: Unable to resolve var: cider.nrepl/wrap-xref in this context HOT 3
- :IcedCleanNs doesn't add a newline after :require HOT 5
- Support for telescope.nvim HOT 5
- Shadow-cljs Documentation says to use iced repl {build id} but it doesn't work HOT 2
- IcedSourceShow or IcedSourcePopupShow not working HOT 4
- FR: log buffer like in conjure HOT 2
- :IcedCleanNs removes `:clj-kondo/ignore` reader comments HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-iced.