dkandalov / limited-wip

IntelliJ plugin to limit your work-in-progress
https://plugins.jetbrains.com/plugin/7655
111 stars 7 forks source link

feature idea: option to use test name for commit message in TCR mode #45

Open alexanderbird opened 2 years ago

alexanderbird commented 2 years ago

Hi Dmitry,

Thanks for this plugin!

Have you considered an option to use the name of the test as the commit message in TCR mode? It would probably exceed the commit summary length, but it would be more informative than any other option.

For example

if I run ... ...then the commit message is
displaysTheCurrentTime in the class NiftyWidgetTest "NiftyWidgetTest.displaysTheCurrentTime"
NiftyWidgetTest "NiftyWidgetTest"
all the tests in the package com.nifty.widgets "Tests in 'com.nifty.widgets'"

That last one is not a great commit message, but it's not worse than "wip" or repeating the last commit.

I don't know what it would take to make that work, I haven't taken a close look at the code for the plugin (and haven't written an intellij plugin before).

Cheers! Alex

dkandalov commented 2 years ago

Hi Alex!

It sounds like a good idea to me 👍 Shouldn't be too hard to implement but can't promise I'll do it very soon as I'm working on other things at the moment.