Coder Social home page Coder Social logo

Support debugging tests about buildship HOT 9 CLOSED

eclipse avatar eclipse commented on May 29, 2024 24
Support debugging tests

from buildship.

Comments (9)

staffanf avatar staffanf commented on May 29, 2024 2

@oehme I noticed that this issue does contain the complete feature request from the bugzilla issue linked by @donat . This issue description does not cover JavaExec debugging which for me is more interesting than debugging unit tests.
Either this issue should be expanded to cover JavaExec's or a another issue should be created. Which one do you prefer?
Also I'd like to push for looking at this since it is the currently most upvoted issue.

from buildship.

walec51 avatar walec51 commented on May 29, 2024 1

Just take a look how Netbeans and IntelliJ Gradle integration looks like.
You can right click on a Gradle task in the tasks view and choose to run it in debug mode.
You can select any test method of class and choose to run it in debug mode which runs it using Gradle and NOT the IDEs internal test runner. In Intellij this requires an extra configuration step. On Netbeans works with through gradle out of the box.

from buildship.

donat avatar donat commented on May 29, 2024 1

The latest snapshot now contains the changes. If you are interested you can go ahead and try it out. Any give us feedback, please :)

from buildship.

donat avatar donat commented on May 29, 2024

Bugzilla issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=471730

from buildship.

donat avatar donat commented on May 29, 2024

Hi @staffanf! So I would just create a new issue GitHub issue with the explanation of the desired behavior and with a reference to this issue.

It would be awesome if the users could execute Gradle builds in debug mode within Eclipse. It's certainly a complex story to implement, so let us know if you need any help, we are happy to support your effort.

I think there are two ways to go. You could either

  • start with a specification in a new GH issue and where we can discuss how the final state should look like, or
  • create a prototype version which we could give feedback on how to proceed.

from buildship.

staffanf avatar staffanf commented on May 29, 2024

@donat Although I noticed this discrepancy I will not be contributing to this issue except for contributing use-cases/feedback/snapshot-testing.
Like many other, we are a mixed shop with some preferring Eclipse and others IntelliJ. I'm in group #2 but I'm also the one responsible for converting our builds to gradle so we would like features parity.
For me, not being able to debug JavaExec tasks is currently the biggest omission for Buildship compared to IntelliJs support.
For us, this currently this involves generating xml launch configurations from JavaExec's. This is kinda fragile since the xml specification is not a official eclipse spec and can be changed.

So I could create a new issue, but my guess is that those that have +1 this post are more interested in debugging JavaExec's than just tests since this issue was created from the bugzilla issue that specifically mentioned debugging tomcatRun.
But looking at the original bugzilla issue, @oehme was actually the only one mentioning either tests/JavaExec.

Maybe we there should be 3 separate issues depending on how different the implementation is?

  1. Debugging JavaExec's
  2. Debugging Test tasks (this current issue)
  3. Debugging any task, ie. debugging gradle logic

I would guess that people would want them in that order, although I could be wrong.

from buildship.

donat avatar donat commented on May 29, 2024

Sorry for the late reply. It's hard to tell what exactly the commenters and +1'ers want, but I'm willing to guess is that the biggest missing feature is the lack of Gradle option in the Debug as... menu. But how exactly this feature should look like? I can imagine a couple of implementations (extending the Gradle editor, hooking into the Tasks view, etc) so we'll need an actual spec where we could discuss how this feature should look like. I'd say please go ahead and open a new ticket and elaborate on step no. 1.

from buildship.

donat avatar donat commented on May 29, 2024

I've merged the PR containing test debugging. There are a couple of enhancements I want to do, but this will enable clients to evaluate the feature using the latest snapshot before Gradle 5.6 comes out.

from buildship.

ams-tschoening avatar ams-tschoening commented on May 29, 2024

This is what one needs to do:

https://discuss.gradle.org/t/buildship-3-1-2-is-now-available/33034

from buildship.

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.