Giter VIP home page Giter VIP logo

Comments (7)

rcarriga avatar rcarriga commented on July 19, 2024 5

OK I've added a suite arg to neotest.run.run, so just set { suite = true } in the args 😄

The root() function would have required users to wrap it in plenary's async library which would be a pain

from neotest.

rcarriga avatar rcarriga commented on July 19, 2024 1

That is intended behaviour. I've added neotest.run.adapters() to get the known adapter IDs.

      for _, adapter_id in ipairs(neotest.run.adapters()) do
        neotest.run.run({ suite = true, adapter = adapter_id })
      end

from neotest.

olimorris avatar olimorris commented on July 19, 2024

I don't believe there is currently but I open the summary pane and press r at the top of the tree:

Screen Shot 2022-06-15 at 10 58 45

from neotest.

stevearc avatar stevearc commented on July 19, 2024

You can get a similar effect by passing a directory in to the run command

require("neotest").run.run(vim.fn.getcwd())

from neotest.

hahuang65 avatar hahuang65 commented on July 19, 2024

Thanks @stevearc your suggestion works pretty well in most cases!

from neotest.

rcarriga avatar rcarriga commented on July 19, 2024

Yeah I've always just used getcwd() but I can see how that wouldn't work all the time. Not sure of what a nice interface would be. Simple solution I think would have a function to get the root directory and then supply that to the run function.
E.g. neotest.run.run(neotest.run.root()) though if there's a way to extend the current run args to say "run everything" then I'd prefer that, so open to ideas

from neotest.

olimorris avatar olimorris commented on July 19, 2024

@rcarriga testing this with multiple adapters in the same Neovim instance and it only runs tests for the first adapter.

from neotest.

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.