Giter VIP home page Giter VIP logo

Comments (8)

fkorotkov avatar fkorotkov commented on May 28, 2024

Note that you should be able to run tests using JUnit plugin which has this fancy UI.

from intellij-pants-plugin.

JasonRosenberg avatar JasonRosenberg commented on May 28, 2024

Yes, but to do that, IntelliJ then needs to re-compile everything, which is slower and less incremental than letting pants compile and run the tests.

from intellij-pants-plugin.

fkorotkov avatar fkorotkov commented on May 28, 2024

The plugin compiles using Pants!

from intellij-pants-plugin.

JasonRosenberg avatar JasonRosenberg commented on May 28, 2024

Ah, ok, so maybe we should then always use the junit mode for running tests? Why even have the 'pants test' option? Does it do anything differently? Maybe not having the option removes confusion?

from intellij-pants-plugin.

fkorotkov avatar fkorotkov commented on May 28, 2024

Unfortunately in our enormous code base we've seen cases when JUnit didn't work. This run configuration producers were added for parity with command line. But Pants Run Configuration is not only about tests. You can configure them to run any pants command and for test and run goals the plugin will automatically modify them to be able to debug tests/running app.

from intellij-pants-plugin.

JasonRosenberg avatar JasonRosenberg commented on May 28, 2024

well, so it looks like running the junit test mode does indeed use pants, but seems to try to compile the entire project, instead of just the dependencies needed for the test at hand. this alone is a huge reason why that mode is not good enough (as opposed to running just pants test on the selected files/packages)

from intellij-pants-plugin.

wisechengyi avatar wisechengyi commented on May 28, 2024

work in progress https://rbcommons.com/s/twitter/r/3493/ will address this issue, at least to the extent of running junit test.

from intellij-pants-plugin.

wisechengyi avatar wisechengyi commented on May 28, 2024

332908a
241fe56

from intellij-pants-plugin.

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.