Giter VIP home page Giter VIP logo

Comments (11)

liquidz avatar liquidz commented on August 18, 2024 1

Oh.. Emidje is cool.
clojure-emacs/cider@030847d
https://github.com/nubank/emidje

from vim-iced.

liquidz avatar liquidz commented on August 18, 2024 1

I'm working with following projects.

from vim-iced.

liquidz avatar liquidz commented on August 18, 2024

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

devth avatar devth commented on August 18, 2024

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.

devth avatar devth commented on August 18, 2024

I'd love to test it out when ready.

from vim-iced.

liquidz avatar liquidz commented on August 18, 2024

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

devth avatar devth commented on August 18, 2024

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.

liquidz avatar liquidz commented on August 18, 2024

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

devth avatar devth commented on August 18, 2024

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
  1. I noticed it's a little slow. To run :IcedKaochaTestUnderCursor takes several seconds, but if I simply evaluate the fact form it's only a few 100ms.
  2. I wonder how I can improve the output. I'll investigate Midje's reporting features.

from vim-iced.

liquidz avatar liquidz commented on August 18, 2024

@devth

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.

liquidz avatar liquidz commented on August 18, 2024

Closed by stale issue.
Feel free to reopen this issue 😃

from vim-iced.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.