The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to run sub suites of tests on branches from single git repo

Jennifer Langdon
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 15, 2012

we have a single git repo w/ a number of differing products. we would like to configure bamboo so that when a checkin happens against a branch we can run only a subset of the entire test suite against this branch. ideally, we would like to associate test suites to dirs & run tests based on which dirs were altered. is there a way to do this using bamboo?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 17, 2013

You can achive this on per-branch basis using Plan Branches and Plan variables.

Set up a Plan on your 'master' branch and define the Tasks you need. When defining test suites that should be run use a variable. e.g ${bamboo.testSuites2Run}. Set it to some reasonable default. Use "polling repository for changes" trigger.

Now create Plan Branches for each of your branches. On each Plan Brach define the variable "testSuites2Run" to a value appropriate for branch.

As for running test suites based on content of the commit: this is only possible by creating a plugin

0 votes
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 17, 2013

You can achive this on per-branch basis using Plan Branches and Plan variables.

Set up a Plan on your 'master' branch and define the Tasks you need. When defining test suites that should be run use a variable. e.g ${bamboo.testSuites2Run}. Set it to some reasonable default. Use "polling repository for changes" trigger.

Now create Plan Branches for each of your branches. On each Plan Brach define the variable "testSuites2Run" to a value appropriate for branch.

As for running test suites based on content of the commit: this is only possible by creating a plugin

TAGS
AUG Leaders

Atlassian Community Events