I’m trying to add a shortcut for mvn test so I can quickly get feedback (tdd style) when I’m working in java.
How can you get the name of the current class you are working in to concat .Test so I can do something like !mvn -DfooTest test
Thank you in advance
If you are inside the test class itself or the implementation class — the vimscript below will run the unit test using mvn test (assuming your test class has the same name as your implementation class + Test)