Code Monkey home page Code Monkey logo

Comments (7)

chrismcg avatar chrismcg commented on July 22, 2024 1

I just saw this and thought mix test --stale might cover it but it doesn't. With ExUnit you can do

mix test --only line:99 --only line:123 test/foo_test.exs --only line:10 test/bar_test.exs

So it should be possible to parse the output and transform it into a command line that just runs the failed tests. Probably a bit harder than rspec though as it does output a list of the failed tests at the end.

from alchemist.el.

tonini avatar tonini commented on July 22, 2024

Yeah thats a good idea. :)

from alchemist.el.

hunterboerner avatar hunterboerner commented on July 22, 2024

This is a great idea!

from alchemist.el.

tonini avatar tonini commented on July 22, 2024

We already talked with Jose about that, because we need to update ExUnit itself for that. Currently there isn't support to run multiple files and locations like mix test one_test.exs:10 two_test.exs.25.

I will infesting some time into it in the next few days If I get some free time.

Thanks

from alchemist.el.

rranelli avatar rranelli commented on July 22, 2024

@tonini ping.

Have something changed in this regard? If yes I would like to attack this issue

from alchemist.el.

tonini avatar tonini commented on July 22, 2024

Hi @rranelli

Thanks for getting back to this issue.

Currently we have alchemist-mix-rerun-last-test, as the name of the function already says it just runs your last test run.

But to implement a function which just runs the latest failed tests we need to extend ExUnit by itself. Jose already mentioned that it would be welcome if someone add multiple mix file:12 file_2:33 functionality to ExUnit.

So I guess the best start would be if you beginning on the ExUnit side and after that you're welcome to add the functionality to Alchemist 👍

from alchemist.el.

rranelli avatar rranelli commented on July 22, 2024

Looks like it is possible to solve this issue now :)

I will try to take a look at this sometime in the near future. Thanks for the finding @chrismcg o/

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.