Code Monkey home page Code Monkey logo

Comments (7)

jtmoulia avatar jtmoulia commented on June 24, 2024

Hey @larshesel, if/when it gets merged, #58 will allow you to customize the options which are passed to mix test:

(set-variable 'alchemist-mix-test-default-options
      (add-to-list 'alchemist-mix-test-default-options "--no-start"))

A drawback is that unless you make the variable local to the buffer, the change will be global within Emacs. Would this sort of solution work for you?

from alchemist.el.

larshesel avatar larshesel commented on June 24, 2024

I think that would be pretty cool. I think for me it would be fine that it's Emacs global. Maybe it would be even better to configure this behavior in mix itself. I'd actually want mix test to, by default, run with --no-start'.

from alchemist.el.

jtmoulia avatar jtmoulia commented on June 24, 2024

Yup, I agree that being able to configure mix or exunit itself would be excellent -- this would be a good project level config. The elixir-lang mailing list might be a good place to ask about that.

Another possible change: if alchemist-mix-test is called with a prefix arg, e.g. C-u C-c a t, prompt the user for the mix test options.

from alchemist.el.

rranelli avatar rranelli commented on June 24, 2024

The magit interface is incredible for defining command options (things like -e trigger the --no-edit option). Mimicking magit's interface would be quite nice.

from alchemist.el.

jtmoulia avatar jtmoulia commented on June 24, 2024

Re the magit interface -- maybe setup a context menu for discover.el if it's installed. Looks pretty straightforward.

from alchemist.el.

larshesel avatar larshesel commented on June 24, 2024

I've asked about the mix configuration solution on the mailing list: https://groups.google.com/forum/#!topic/elixir-lang-talk/YCWfXQMRL1Y

from alchemist.el.

larshesel avatar larshesel commented on June 24, 2024

And José already solved the problem: https://groups.google.com/d/msg/elixir-lang-talk/YCWfXQMRL1Y/uWuu777cLO4J which is a really good solution for me (the right one IMHO) so I'll close this issue now.

Thanks a lot guys!

from alchemist.el.

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.