Giter VIP home page Giter VIP logo

Comments (6)

stehessel avatar stehessel commented on August 18, 2024 1

Awesome, thank you!

from neotest.

rcarriga avatar rcarriga commented on August 18, 2024

So I'd like to get a bit more insight into the reason for this feature. In my mind the only way to do this (without making the entire interface for adapters more complex) would be to run each selected test as an individual process. Therefore you may as well just run each one separately.

Can you (or others) describe where you see the advantage in terms of workflow?

from neotest.

stehessel avatar stehessel commented on August 18, 2024

The use case I envision would be:

  • You are working on code in file A.
  • The code changes affect code in files B and C.
  • You want to run testB1, testB2 and testC5 while iterating on your changes in file A.

This is not about performance. How the tests are executed and whether they are run concurrently would be an implementation detail, you could also execute the tests serially in a single thread. It's about running the tests you want to run, even when they are scattered in different files.

from neotest.

stehessel avatar stehessel commented on August 18, 2024

One corner case would be parametrized tests - e.g. using pytest. If I remember correctly PyCharm treats parameters as separate tests and allows to select individual selection for them. I think that's ideal, but it might be easier to select only based on test and file names and then run all parameters.

from neotest.

rcarriga avatar rcarriga commented on August 18, 2024

OK that all makes sense, just wanted to make sure I understood the need properly 👍

If I remember correctly PyCharm treats parameters as separate tests and allows to select individual selection for them

That'd be a feature request for neotest-python to detect them as separate tests but that sounds very cool

from neotest.

rcarriga avatar rcarriga commented on August 18, 2024

OK I've added the ability to mark tests in the summary and run them. See :h neotest.summary.run_marked() and :h neotest.Config.summary.mappings for details

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.