Reputation: 14317
I recall seeing before in some projects a well-known JIRA issue that would be linked to all new Unit test and "Cosmetic" commits. Is this a common practice? Are there cons I could overlook? I kind of like this approach because e.g. all commits will have an associated JIRA issue and creating one JIRA issue for every new Unit test or even Suite seems excessive.
Upvotes: 0
Views: 712
Reputation: 6881
I recommend using a JIRA issue for pieces of work that can happen in parallel. So if multiple people are working on unit tests, create an issue for each unit test, or group of unit tests. The question of creating an issue for cosmetic changes usually arises because someone declares that every commit must have a JIRA issue key in its message. It's usually better to only require that on the most important branches or trunk/master so people don't have to work around the policy
Upvotes: 1
Reputation: 11474
I can not tell you, if that is a common practice.
I think it is bad, to add all JUnit Tests and Cosmetics as a sub-task to one Task.
Lets say, u got a Structure like this:
Common User Story
Tasks
Cosmetic and Junit Container
Cosmetic
JUnit
Then you will not be able to check (easily), if the Tasks1 JUnit Test was completed or not.
If you do it like that
Common User Story
you can easily check, what Cosmetics regard to what Task, what Junit test, of that task is completed and which not, also better for time tracking etc.
Upvotes: 1