How can QA test multiple features at once with feature branching in Gitflow workflow?
Asked Answered
A

1

3

If developers were to work on different branches for different features I understand that they can give a QA build from the feature branch and once it is tested it can be merged with "develop".

But if the QA team is fairly large and can test multiple features at once, how can they be given a build containing features that are residing in different branches?

Adrea answered 8/1, 2017 at 3:42 Comment(0)
B
8

But if the QA team is fairly large and can test multiple features at once how can they be given a build containing features that are residing in different branches?

That would be by:

  • setting up an integration branch, reset to the latest master,
  • asking for the developers to push their feature branch OR
  • or fetching the different developer's repositories, and merging the right feature branches in the integration branch
  • running tests in said integration branch
Burk answered 8/1, 2017 at 6:11 Comment(7)
An example: git checkout -b integration origin/master && git merge origin/feature1 origin/feature2 [...] origin/featureNFredella
This seems like a possible solution but I'm still a little confused. Assume 3 developers worked on 3 features A, B, C which are merged to an integration branch and a QA build is generated. A, B features pass the tests but not C. I think it is not correct to merge A and B into develop since QA tested an integration of A,B,C (although C failed). In this situation has the feature branching or even Gitflow workflow provided any advantages?Adrea
Then you use in integration branch a git revert C that will cancel C, and you can then merge integration to develop.Burk
But then wouldn't QA have to test again? I think my problem is I don't understand the advantages of using feature branches in a situation like this.Adrea
Sure, QA test with B and C, then merge. The advantage is to integrate multiple features together, revert the ones which fails, and merge the rest.Burk
This is starting to make sense now :-). So, is the whole point of feature branching the ability to generate a QA build from any combination of the features?Adrea
Yes, you isolate the development of different features each in their own branch, which allows you to mix and match in an integration branch.Burk

© 2022 - 2024 — McMap. All rights reserved.