[Github-comments] [geany/geany] RFE: Extra build customisation (#1986)

ThrawnCA notifications at xxxxx
Wed Oct 31 04:39:37 UTC 2018


I'd like to be able to set up a build that would run a single Java (JUnit) test. I've been able to set up a build that will run all tests from the current class (via Maven, in this case):

    CLASSNAME=$(echo %f |sed 's|[\].java||'); mvn -Dtest=${CLASSNAME} test
    (feedback on better approaches is welcome)

But there just aren't any string substitutions that will allow me to specify parts of a class.

Some options for how this could be achieved:

- Provide a placeholder representing the current text selection, eg %s
- Allow more than one build entry to have the custom input dialog that "Make Custom Target..." gets. I already use that one to build arbitrary Maven targets, but it would be nice to have a second, more specialised one where I could just paste in a test name and run that.
- Ideally, I'd love to have a placeholder that would substitute the current function name (determined in the same way as the Symbols sidebar), but that's probably more complicated.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1986
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20181030/39afc98a/attachment.html>


More information about the Github-comments mailing list