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